From 9c17cf7a61555a29ede53c3cf31a6a5072dd5833 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 31 Jul 2025 13:37:46 +0100 Subject: [PATCH] update --- bspwm-set-ratio.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bspwm-set-ratio.sh 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" +