set $lock_cmd ~/.bin/lockscreen.sh
exec swayidle -w \
timeout 1200 $lock_cmd \
- timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
+ timeout 600 '$lock_cmd DisplayOff' resume 'swaymsg "output * dpms on"' \
before-sleep $lock_cmd
bindsym $mod+Shift+x exec $lock_cmd
+exec ~/.bin/set-volume-balance.sh
+
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.