mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
bspwm_auto_balance: limit effect to longest_side scheme
This commit is contained in:
parent
9ef2a2a3fe
commit
fd5ced30c6
|
|
@ -29,12 +29,15 @@ _top-or-bottom ()
|
|||
|
||||
while IFS= read -r line
|
||||
do
|
||||
# Balance only when splitting side-by-side.
|
||||
if _left-or-right @east || _left-or-right @west
|
||||
if [ $(bspc config automatic_scheme) == "longest_side" ]
|
||||
then
|
||||
bspc node @/ --balance
|
||||
elif _top-or-bottom @north || _top-or-bottom @south
|
||||
then
|
||||
bspc node @north --balance || bspc node @south --balance
|
||||
# Balance only when splitting side-by-side.
|
||||
if _left-or-right @east || _left-or-right @west
|
||||
then
|
||||
bspc node @/ --balance
|
||||
elif _top-or-bottom @north || _top-or-bottom @south
|
||||
then
|
||||
bspc node @north --balance || bspc node @south --balance
|
||||
fi
|
||||
fi
|
||||
done < <(bspc subscribe node_add node_remove)
|
||||
|
|
|
|||
Loading…
Reference in a new issue