fix(sway): daemonize swayidle
This commit is contained in:
parent
2513c93d26
commit
1c8ad19a2d
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue