blob: ccfa88872660070e5d2f1c7da32036c3f847bba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{config, ...}: {
services.swayidle = {
enable = config.desktops.sway.enable;
systemdTarget = "sway-session.target";
timeouts = [
{
timeout = 300;
command = "${config.default.lockScreen}";
}
{
timeout = 300;
command = "swaymsg \"output * power off\"";
resumeCommand = "swaymsg \"output * power on\"";
}
];
events = {
"before-sleep" = "${config.default.lockScreen}";
};
};
}
|