dotfiles/modules/desktop/bspwm/bspwmrc
2022-02-20 22:58:51 +01:00

12 lines
304 B
Bash
Executable file

#!/usr/bin/env bash
# MONITORS #
monitors=($(bspc query -M --names | sort -r))
desktops=$(expr 10 / ${#monitors[@]})
start=1
end=$desktops
for monitor in ${monitors[@]}; do
bspc monitor $monitor -d $(seq -s ' ' $start $end)
start=$(expr $start + $desktops)
end=$(expr $end + $desktops)
done