From ed7270d498a968901d8bac85a353225cb8a69d55 Mon Sep 17 00:00:00 2001 From: Florestan Bredow Date: Sun, 21 Dec 2025 10:12:37 +0100 Subject: [PATCH] Hyprland : Add shortcuts to resize window --- .config/hypr/hyprland.conf | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index f22b4d3..bb354e7 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -44,9 +44,6 @@ $menu = pgrep -x wofi >/dev/null 2>&1 || wofi --gtk-dark --show drun # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: -# exec-once = $terminal -# exec-once = nm-applet & -# exec-once = waybar & hyprpaper & firefox exec-once = waybar --config ~/.config/waybar/config.hyprland exec-once = foot --server exec-once = blueman-applet @@ -327,11 +324,6 @@ bind = $mainMod SHIFT, code:19, movetoworkspace, 10 bind = $mainMod SHIFT, code:20, movetoworkspace, 11 bind = $mainMod SHIFT, code:21, movetoworkspace, 12 -#bind = $mainMod SHIFT, left, hy3:movewindow, l -#bind = $mainMod SHIFT, right, hy3:movewindow, r -#bind = $mainMod SHIFT, up, hy3:movewindow, u -#bind = $mainMod SHIFT, down, hy3:movewindow, d - bind = $mainMod, left, hy3:movefocus, l bind = $mainMod, right, hy3:movefocus, r bind = $mainMod, up, hy3:movefocus, u @@ -361,7 +353,7 @@ bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow +rindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # Laptop multimedia keys for volume and LCD brightness @@ -378,6 +370,15 @@ bindl = , XF86AudioPause, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPrev, exec, playerctl previous +bind = $mainMod, R,submap,resize +submap=resize +bind = , right, resizeactive, 10 0 +bind = , left, resizeactive, -10 0 +bind = , up, resizeactive, 0 -10 +bind = , down, resizeactive, 0 10 +bind = , Escape,submap,reset +submap=reset + ############################## ### WINDOWS AND WORKSPACES ### ##############################