From 642a0f18380f8eedc64ff55a6aa637d73e9ee638 Mon Sep 17 00:00:00 2001 From: Gabriella Bere Date: Wed, 1 Oct 2025 16:54:29 +0100 Subject: [PATCH] added vim keybinds to hyprland config added vim keybinds mod+(hjkl) for focus and the same + shift to move windows because of this i had to rebind the lock key to mod+alt+l --- home-manager/hyprland.nix | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/home-manager/hyprland.nix b/home-manager/hyprland.nix index a6afc50..b89233d 100644 --- a/home-manager/hyprland.nix +++ b/home-manager/hyprland.nix @@ -89,13 +89,25 @@ # Screenshot tool ", Print, exec, hyprshot -m region -o ~/Pictures/Screenshots" - # Screen locking tool - "$mod, l, exec, hyprlock" + # Screen locking + "$mod alt, l, exec, hyprlock" # Window management "$mod, x, killactive" "$mod, tab, togglefloating" + # Vim keybinds for changing focus + "$mod, h, movefocus, l" + "$mod, j, movefocus, d" + "$mod, k, movefocus, u" + "$mod, l, movefocus, r" + + # Vim keybinds for moving windows + "$mod shift, h, movewindow, l" + "$mod shift, j, movewindow, d" + "$mod shift, k, movewindow, u" + "$mod shift, l, movewindow, r" + # workspace swipe but with $mod+scroll "$mod, mouse_up, workspace, r+1" "$mod, left, workspace, m-1"