From e0dc64a7dfa65763ec732c440ad23ad28360ed48 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 5 Nov 2016 20:29:30 +0100 Subject: [PATCH] bspwm: fix multi-monitor config --- os/arch/.config/bspwm/bspwmrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/arch/.config/bspwm/bspwmrc b/os/arch/.config/bspwm/bspwmrc index 35469dcc..7fa14044 100755 --- a/os/arch/.config/bspwm/bspwmrc +++ b/os/arch/.config/bspwm/bspwmrc @@ -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