diff options
Diffstat (limited to 'dotfiles/hyprland/.local/bin/layout-resize')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/layout-resize | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/dotfiles/hyprland/.local/bin/layout-resize b/dotfiles/hyprland/.local/bin/layout-resize deleted file mode 100755 index 70742c5..0000000 --- a/dotfiles/hyprland/.local/bin/layout-resize +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# Layout-aware resize for Hyprland -# Usage: layout-resize <grow|shrink> - -DIR="$1" -LAYOUT=$(hyprctl getoption general:layout -j | jq -r '.str') - -case "$LAYOUT" in - scrolling) - if [ "$DIR" = "grow" ]; then - hyprctl dispatch resizeactive 50 0 - else - hyprctl dispatch resizeactive -50 0 - fi - ;; - *) - # master, dwindle, etc. - if [ "$DIR" = "grow" ]; then - hyprctl dispatch layoutmsg mfact 0.05 - else - hyprctl dispatch layoutmsg mfact -0.05 - fi - ;; -esac |
