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

12 lines
403 B
Plaintext
Raw Normal View History

# Define locker script
2022-07-20 19:43:22 +00:00
set $locker 'swaylock -f -i "$(shuf -n1 -e ~/Pictures/Lockscreens/*.png)" -s fill'
bindsym $alt+L exec $locker
# IDLE CONFIG
exec swayidle -w \
timeout 300 $locker \
2022-07-20 19:43:22 +00:00
timeout 330 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
timeout 600 'systemctl suspend' \
before-sleep $locker \
before-sleep 'playerctl pause'