feat: add trigger for laptop open/close
This commit is contained in:
parent
bdc849205e
commit
e83ce10ad7
1 changed files with 4 additions and 0 deletions
|
@ -217,6 +217,10 @@ in
|
||||||
# Toggle waybar
|
# Toggle waybar
|
||||||
bindr = $mainMod , SUPER_L , exec , pkill -USR1 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
|
# Extra Config
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue