Update .config/polybar/colorblocks/launch.sh

This commit is contained in:
punkfairie 2024-08-04 13:46:41 -07:00
parent 8dd53934c3
commit 4c9bde56cc
Signed by: punkfairie
GPG key ID: A86AF57F837E320F

View file

@ -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