Lock screen on lid close

This commit is contained in:
Andreas Tsouchlos 2024-05-04 01:21:21 +02:00
parent af2bfb7032
commit c5d88a5943

View File

@ -4,12 +4,14 @@ set $term kitty
set $menu dmenu_path | wofi --show=run --matching | xargs swaymsg exec --
set $lock swaylock --screenshot --effect-blur 10x10 --effect-vignette 0.5:1 --ring-color 3c3836 --key-hl-color d65e0e -f
#xwayland disable
output * bg ~/.config/sway/wallpapers/mountains.jpg fill
output eDP-1 scale 1.4
bindswitch --reload --locked lid:on exec $lock
exec sway-audio-idle-inhibit
exec swayidle -w \
timeout 10 $lock \