From d28ef117fa016d562b3a5b485eafe6e5273a027a Mon Sep 17 00:00:00 2001 From: kenji Date: Sat, 27 Dec 2025 22:30:43 -0600 Subject: [PATCH] feat(hyprland): add mouse binds and resize keyboard shortcuts --- apps/hyprland/hypr/binds.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/hyprland/hypr/binds.nix b/apps/hyprland/hypr/binds.nix index 8ff8e51..7819209 100644 --- a/apps/hyprland/hypr/binds.nix +++ b/apps/hyprland/hypr/binds.nix @@ -19,12 +19,23 @@ ", XF86AudioNext, exec, playerctl next && notify-send -u low -t 1000 \"Next Track\" \"$(playerctl metadata title)\"" ", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle" ]; # FIXME: not working + bindm = [ + "SUPER, mouse:272, movewindow" + "SUPER, mouse:273, resizewindow" + ]; + bindd = [ # essential "SUPER, Return, Open Terminal, exec, uwsm app -- xdg-terminal-exec" "SUPER, Q, Kill active, killactive" + # resize + "SUPER CTRL, H, Resize Left, resizeactive, -40 0" + "SUPER CTRL, J, Resize Down, resizeactive, 0 40" + "SUPER CTRL, K, Resize Up, resizeactive, 0 -40" + "SUPER CTRL, L, Resize Right, resizeactive, 40 0" + # move focus "SUPER, J, Move focus down, movefocus, d" "SUPER, K, Move focus up, movefocus, u"