-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkanshi.nix
48 lines (45 loc) · 977 Bytes
/
kanshi.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
# alt to `-enable-features=UseOzonePlatform --ozone-platform=wayland`
home.sessionVariables = {
NIXOS_OZONE_WL = 1;
};
# `https://home-manager-options.extranix.com/?query=kanshi`
services.kanshi = {
enable = true;
systemdTarget = "river-session.target";
settings = [
{
output = {
criteria = "eDP-1";
scale = 2.0;
};
}
{
profile = rec {
name = "single";
exec = "dunstify kanshi \"Switched to ${name}\"";
outputs = [
{
criteria = "eDP-1";
}
];
};
}
{
profile = rec {
name = "test";
exec = "dunstify kanshi \"Switched to ${name}\"";
outputs = [
{
criteria = "eDP-1";
}
{
criteria = "HDMI-A-1";
transform = "270";
}
];
};
}
];
};
}