blob: 71ef7d82214e462a7dd8822ec9401708503b978a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{pkgs, ...}: {
services = {
swayidle = {
enable = true;
events = [
# { event = "timeout 300"; command = "${pkgs.swaylock}/bin/swaylock -fF -c 000000"; }
# { event = "timeout 600"; command = "swaymsg \"output * dpms off\""; }
{
event = "after-resume";
command = "swaymsg \"output * dpms on\"";
}
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -fF -c 000000";
}
];
};
wob.enable = true;
};
}
|