machine_setup/ansible/roles/sway/files/sway_config_files/lockscreen.conf
2023-10-11 23:04:07 -04:00

11 lines
249 B
Plaintext

set $lock swaylock -f -c 000000
# Hotkey to lock the screen
bindsym $mod+l exec $lock
exec swayidle -w \
timeout 300 '$lock' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep '$lock'