Add swaylock.

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

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'