bspwm/bspwm-set-ratio.sh

12 lines
256 B
Bash
Executable File

#!/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"