From 9eb6cc43ec697b9d13cb0d9b8dc7455e93f9d00b Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 17 Mar 2025 23:39:19 +0800 Subject: [PATCH] feat(hyprland): add keybind for hyprlock --- users/modules/programs/hyprland.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/users/modules/programs/hyprland.nix b/users/modules/programs/hyprland.nix index 150dbed..3f3b579 100644 --- a/users/modules/programs/hyprland.nix +++ b/users/modules/programs/hyprland.nix @@ -9,6 +9,11 @@ package = null; portalPackage = null; settings = { + # Programs to run at startup + exec-once = [ + "hyprlock" + ]; + env = [ "XCURSOR_SIZE,32" @@ -43,10 +48,6 @@ "float, class:firefox, title:Picture-in-Picture" ]; - # Programs - exec-once = [ - ]; - # Keybinds "$mainMod" = "SUPER"; "$terminal" = "kitty -1 -e zellij"; @@ -59,10 +60,10 @@ "$mainMod, O, exec, $browser" "$mainMod, S, exec, $music" "$mainMod, M, exit" + "$mainMod, L, exec, hyprlock" - # HJKL to move between windows - "$mainMod, H, cyclenext, visible" - "$mainMod, L, cyclenext, visible prev" + # move between windows + "ALT, Tab, cyclenext" # HJKL to move a window "$mainMod_ALT, H, movewindow, l"