diff --git a/bspwm-set-ratio.sh b/bspwm-set-ratio.sh new file mode 100755 index 0000000..f12fdb8 --- /dev/null +++ b/bspwm-set-ratio.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Preset options, with .66 first to simulate preselection +ratio=$(printf ".66\n.75\n.5\n.33\n.25" | dmenu -p "Set split ratio:") + +# Exit if cancelled or empty +[ -z "$ratio" ] && exit 1 + +# Apply to parent node +bspc node @parent --ratio "$ratio" +