feat: add lock keybind

nixos
Moritz Böhme 2024-08-19 09:48:18 +02:00
parent cb8597a97a
commit a4cb8f2dfd
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 4 additions and 0 deletions

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}
''