Add swaylock.
This commit is contained in:
parent
84e189f50d
commit
178522c2af
@ -8,3 +8,4 @@ default_sway_conf_files:
|
|||||||
- screenshots
|
- screenshots
|
||||||
- notifications
|
- notifications
|
||||||
- disable_focus_follows_mouse
|
- disable_focus_follows_mouse
|
||||||
|
- lockscreen
|
||||||
|
@ -15,9 +15,6 @@
|
|||||||
# mouse button for dragging.
|
# mouse button for dragging.
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
|
|
||||||
# Hotkey to lock screen, relies on swayidle running
|
|
||||||
bindsym $mod+l exec pkill -USR1 swayidle
|
|
||||||
|
|
||||||
# reload the configuration file
|
# reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
|
||||||
|
@ -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'
|
Loading…
x
Reference in New Issue
Block a user