timeout 240 'light -G > /tmp/brightness && light -S 10' resume 'light -S $([ -f /tmp/brightness ] && cat /tmp/brightness || echo 100%)' timeout 300 '/usr/share/sway/scripts/lock.sh' timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' timeout 900 'systemctl suspend' before-sleep 'playerctl pause' before-sleep '/usr/share/sway/scripts/lock.sh' lock '/usr/share/sway/scripts/lock.sh'