Browse Source

Add trigger for swaylock

master
siinus 9 months ago
parent
commit
ceb84db934
Signed by: siinus
GPG Key ID: 259BA0611AE97CEF
  1. 7
      sway/.config/sway/config

7
sway/.config/sway/config

@ -34,7 +34,9 @@ set $lockcmd swaylock -f -c 000000 @@ -34,7 +34,9 @@ set $lockcmd swaylock -f -c 000000
exec swayidle -w \
timeout 300 '$lockcmd' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep '$lockcmd'
before-sleep '$lockcmd' \
lock '$lockcmd'
input "type:keyboard" {
xkb_layout pvx
@ -43,6 +45,9 @@ input "type:keyboard" { @@ -43,6 +45,9 @@ input "type:keyboard" {
### Key bindings
# Lock sway
bindsym $mod+Escape exec pkill -USR1 swayidle
# Start a terminal
bindsym $mod+Return exec $term

Loading…
Cancel
Save