Decrease DPMS off time

This will first turn off the screen and then lock it. If I sit in front
of the computer, I still have a chance to prevent the locking.
This commit is contained in:
Jakob Lechner 2024-07-04 18:50:49 +02:00
parent d6a82588c3
commit e7b017596c

View file

@ -336,7 +336,7 @@ in
ExecStart = ''
${pkgs.swayidle}/bin/swayidle -w \
timeout 300 "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}" \
timeout 300 '${pkgs.sway}/bin/swaymsg "output * dpms off"' \
timeout 270 '${pkgs.sway}/bin/swaymsg "output * dpms off"' \
resume '${pkgs.sway}/bin/swaymsg "output * dpms on"' \
before-sleep "${pkgs.swaylock}/bin/swaylock -f -i ${wallpaper}"
'';