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

@@ -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'