Fix swayidle service

- add missing \
- reference swaylock-bg script from pkgs
This commit is contained in:
teutat3s 2022-09-01 14:38:10 +02:00
parent d563b1d469
commit 1767dcb076
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -12,11 +12,11 @@
Environment = "PATH=/run/current-system/sw/bin:${pkgs.sway}/bin";
ExecStart = ''${pkgs.swayidle}/bin/swayidle -w \
after-resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock-bg' '' + (if psCfg.paranoia.enable then '' \
before-sleep '${pkgs.swaylock-bg}/bin/swaylock-bg' '' + (if psCfg.paranoia.enable then '' \
timeout 120 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
timeout 150 'systemctl hibernate'
'' else '' \
timeout 600 'swaylock-bg'
timeout 600 '${pkgs.swaylock-bg}/bin/swaylock-bg' \
timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
'');
};