feat: add trigger for laptop open/close

This commit is contained in:
Moritz Böhme 2024-06-12 09:48:04 +02:00
parent bdc849205e
commit e83ce10ad7

View file

@ -217,6 +217,10 @@ in
# Toggle waybar
bindr = $mainMod , SUPER_L , exec , pkill -USR1 waybar
# Lid open/close
bindl=,switch:on:Lid Switch,exec,monitors="$(hyprctl monitors | grep -c '^Monitor')" && hyprctl keyword monitor "eDP-1, disable" && [ "$monitors" = 1 ] && loginctl lock-session
bindl=,switch:off:Lid Switch,exec, hyprctl keyword monitor "eDP-1, prefered, auto"
# Extra Config
${cfg.extraConfig}
''