Use systemd for swayidle

This commit is contained in:
sfigato 2021-08-04 17:55:22 +02:00
parent e5d74bb252
commit fd80ca00b6
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -8,9 +8,10 @@ exec "systemctl --user start mako"
exec "systemctl --user start gammastep" exec "systemctl --user start gammastep"
exec "systemctl --user start kanshi" exec "systemctl --user start kanshi"
exec "systemctl --user start greenclip" exec "systemctl --user start greenclip"
exec swayidle -w \ exec "systemctl --user import-environment; systemctl --user start swayidle"
timeout 300 '$lock' \ # exec swayidle -w \
timeout 305 'swaymsg "output * dpms off"' \ # timeout 300 '$lock' \
timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ # timeout 305 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ # timeout 5 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
before-sleep '$lock' # resume 'swaymsg "output * dpms on"' \
# before-sleep '$lock'