From 4d5cac16683184a897eafaccc9799fcb648a951e Mon Sep 17 00:00:00 2001 From: Carlos Sousa Date: Mon, 17 Mar 2025 22:15:11 +0100 Subject: [PATCH] add resize mode binds to hyprland --- config/hypr/config.d/keybinds.conf | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/config/hypr/config.d/keybinds.conf b/config/hypr/config.d/keybinds.conf index db91311..5759a2f 100644 --- a/config/hypr/config.d/keybinds.conf +++ b/config/hypr/config.d/keybinds.conf @@ -50,7 +50,6 @@ bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 - ############# ### Moving Windows TO Workspaces ############# @@ -67,7 +66,28 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 +############# +### Resizing with the Keyboard +############# +# switch to submap called resize +bind = ALT, R, submap, resize + +# start submap called "resize" +submap = resize + +# sets repeatable binds for resizing active window +binde = , right, resizeactive, 10 0 +binde = , left, resizeactive, -10 0 +binde = , up, resizeactive, 0 -10 +binde = , down, resizeactive, 0 10 + +# use reset to go back to global submap +bind = , escape, submap, reset +bind = , return, submap, reset + +# reset the submap, therefore returning to global submap +submap = reset ############# ### Layouts, Groups and Tabs