# Swayidle configuration

timeout ${idle}   'light -O && light -S $(light -P)' resume 'light -I'

timeout ${lock}   'exec swaylock'

timeout ${screen} 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'

timeout ${sleep}  'swaymsg "output * dpms on"; systemctl suspend'


before-sleep 'playerctl pause'
before-sleep 'exec swaylock'