feat: add lock keybind

This commit is contained in:
Moritz Böhme 2024-08-19 09:48:18 +02:00
parent cb8597a97a
commit a4cb8f2dfd
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -236,6 +236,10 @@ in
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, preferred, auto"
# Lock Screen
bind=$mainMod ALT, L, exec, loginctl lock-session
# Extra Config
${cfg.extraConfig}
''