timeout 150 'brightnessctl g | tee $HOME/.config/swayidle/brightness; brightnessctl s 0' resume 'brightnessctl s $(cat $HOME/.config/swayidle/brightness); rm $HOME/.config/swayidle/brightness'
timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
timeout 600 '/usr/bin/sp-lock'
timeout 1800 'systemctl suspend'
before-sleep '/usr/bin/sp-lock'
