From 56fbe8c750356293ceddb6298fd395521044822e Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 6 Feb 2016 11:55:14 +0300 Subject: [PATCH] a quick and dirty hack to not depend on hardcoded screen names --- bspwmrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bspwmrc b/bspwmrc index 779671a..aebecdd 100755 --- a/bspwmrc +++ b/bspwmrc @@ -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