Add swaylock.

This commit is contained in:
Tom Alexander 2022-11-28 22:48:44 -05:00
parent 84e189f50d
commit 178522c2af
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 7 additions and 3 deletions

View File

@ -8,3 +8,4 @@ default_sway_conf_files:
- screenshots
- notifications
- disable_focus_follows_mouse
- lockscreen

View File

@ -15,9 +15,6 @@
# mouse button for dragging.
floating_modifier $mod normal
# Hotkey to lock screen, relies on swayidle running
bindsym $mod+l exec pkill -USR1 swayidle
# reload the configuration file
bindsym $mod+Shift+c reload

View File

@ -0,0 +1,6 @@
# Hotkey to lock the screen
bindsym $mod+l exec pkill -USR1 swayidle
exec swayidle \
timeout 300 'swaylock -c 000000' \
before-sleep 'swaylock -c 000000'