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

11 lines
311 B
Plaintext

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