From 4c9bde56cc6b44a945c0d0e2a1f9974d79893ab9 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 4 Aug 2024 13:46:41 -0700 Subject: [PATCH] Update .config/polybar/colorblocks/launch.sh --- dot_config/polybar/colorblocks/executable_launch.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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