diff --git a/bin/bar b/bin/bar index bdd748a..fca99d9 100755 --- a/bin/bar +++ b/bin/bar @@ -3,7 +3,10 @@ set -x if type "xrandr"; then - for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + for m in $(xrandr --query | grep " connected" |grep "primary" | cut -d" " -f1); do + MONITOR=$m polybar --reload dwm & + done + for m in $(xrandr --query | grep " connected" |grep -v "primary" | cut -d" " -f1); do MONITOR=$m polybar --reload dwm & done else