dotfiles/modules/desktop/bspwm/bspwmrc

13 lines
304 B
Plaintext
Raw Normal View History

2021-09-09 21:55:28 +02:00
#!/usr/bin/env bash
# MONITORS #
2022-02-20 22:58:51 +01:00
monitors=($(bspc query -M --names | sort -r))
2021-09-30 19:42:27 +02:00
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