bspwm: fix multi-monitor config

This commit is contained in:
Henrik Lissner 2016-11-05 20:29:30 +01:00
parent 74c679930d
commit e0dc64a7df

View file

@ -33,13 +33,13 @@ bspc config active_border_color "${COLOR[13]}"
# Displays
#
bspc monitor primary -d 1/{DESKTOP,WEB,CODE,CHAT,ART,MEDIA,MUSIC}
NMON=$(bspc query -M | wc -l)
bspc monitor ${monitors} -d 1/{DESKTOP,WEB,CODE,CHAT,ART,MEDIA,MUSIC}
i=2
for monitor in $(bspc query -M | tail -n +2); do
bspc monitor $monitor -n "$i" -d $i/{DESKTOP,WEB,CODE,CHAT,MUSIC}
let i++
done
NMON=$i
unset i