Add swayidle timeout to suspend

This commit is contained in:
Alexander Oakman 2024-07-27 19:05:20 +03:00
parent 70078da4ac
commit 2a9f64fbe9

View file

@ -1,6 +1,7 @@
timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)'
timeout 300 ~/.config/swaylock/lock.sh
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
timeout 900 'systemctl suspend'
before-sleep 'playerctl pause'
before-sleep ~/.config/swaylock/lock.sh
lock ~/.config/swaylock/lock.sh