diff --git a/home-manager/common/desktops/hyprland/common/hyprland/hyprland-binds.nix b/home-manager/common/desktops/hyprland/common/hyprland/hyprland-binds.nix index 5e33bc24..2201edcc 100644 --- a/home-manager/common/desktops/hyprland/common/hyprland/hyprland-binds.nix +++ b/home-manager/common/desktops/hyprland/common/hyprland/hyprland-binds.nix @@ -83,21 +83,22 @@ ''SUPER, mouse:272, movewindow'' ''SUPER, mouse:273, resizewindow'' ]; - submap = "resize"; - binde = [ - '', H, resizeactive,-50 0'' - '', L, resizeactive,50 0'' - '', K, resizeactive,0 -50'' - '', J, resizeactive,0 50'' - '', left, resizeactive,-50 0'' - '', right, resizeactive,50 0'' - '', up, resizeactive,0 -50'' - '', down, resizeactive,0 50'' - ]; - bind = [ - '', escape, submap, reset'' - ]; - reset = {}; }; + extraConfig = '' + # Resize + bind = SUPER, R, exec, notify-send "Entered resize mode. Press ESC to quit." + bind = SUPER, R, submap, resize + submap = resize + binde = , H, resizeactive,-50 0 + binde = , L, resizeactive,50 0 + binde = , K, resizeactive,0 -50 + binde = , J, resizeactive,0 50 + binde = , left, resizeactive,-50 0 + binde = , right, resizeactive,50 0 + binde = , up, resizeactive,0 -50 + binde = , down, resizeactive,0 50 + bind = , escape, submap, reset + submap = reset + ''; }; }