1
0
Fork 0

a quick and dirty hack to not depend on hardcoded screen names

This commit is contained in:
Von Random 2016-02-06 11:55:14 +03:00
parent 978446e5cb
commit 56fbe8c750

View file

@ -10,8 +10,11 @@ bspc config focus_by_distance true
bspc config focus_follows_pointer true
bspc config pointer_follows_monitor true
bspc monitor HDMI1 -d 1 2 3
bspc monitor VGA1 -d q w e
screens=$(xrandr|grep ' connected')
primary=$(awk '{if ($3 == "primary") print $1}' <<< $screens)
secondary=$(awk '{if ($3 != "primary") print $1}' <<< $screens)
bspc monitor $primary -d 1 2 3
bspc monitor $secondary -d q w e
#bspc rule -a Gimp desktop=^8 follow=on floating=on
#bspc rule -a Chromium desktop=^2