diff --git a/dot_config/polybar/colorblocks/executable_launch.sh b/dot_config/polybar/colorblocks/executable_launch.sh index 6fddba8..27c257f 100644 --- a/dot_config/polybar/colorblocks/executable_launch.sh +++ b/dot_config/polybar/colorblocks/executable_launch.sh @@ -11,4 +11,10 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch the bar -polybar -q main -c "$DIR"/config.ini & +if type "xrandr"; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=$m polybar -q main -c "$DIR"/config.ini & + done +else + polybar -q main -c "$DIR"/config.ini & +fi