fix(sway): daemonize swayidle

This commit is contained in:
winston 2023-05-20 06:19:06 +02:00
parent 2513c93d26
commit 1c8ad19a2d
Signed by: winston
GPG key ID: 3786770EDBC2B481

View file

@ -467,11 +467,12 @@ in {
{
command = ''
swayidle -w \
timeout 180 swaylock \
timeout 180 'swaylock -f' \
timeout 360 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep swaylock
before-sleep 'swaylock -f'
'';
always = true;
}
];
}