machine_setup/ansible/roles/sway/files/sway_config_files/lockscreen.conf

11 lines
249 B
Plaintext
Raw Normal View History

2023-10-12 03:03:21 +00:00
set $lock swaylock -f -c 000000
2022-11-29 07:33:11 +00:00
2022-11-29 03:48:44 +00:00
# Hotkey to lock the screen
2022-11-29 07:33:11 +00:00
bindsym $mod+l exec $lock
2022-11-29 03:48:44 +00:00
2023-10-12 03:03:21 +00:00
exec swayidle -w \
2022-11-29 07:33:11 +00:00
timeout 300 '$lock' \
2023-10-12 03:03:21 +00:00
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
2022-11-29 07:33:11 +00:00
before-sleep '$lock'