dotfiles/symlinks/config/sway/conf.d/20_lockconfig

12 lines
343 B
Plaintext

# Define locker script
set $locker 'swaylock'
bindsym $alt+L exec $locker
# IDLE CONFIG
exec swayidle -w \
timeout 300 $locker \
timeout 330 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
timeout 600 'systemctl suspend' \
before-sleep $locker \
before-sleep 'playerctl pause'