summaryrefslogtreecommitdiffstats
path: root/.local/bin/launch_polybar
blob: 291d1834988970ab921e567a8c7fa11f078a020e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Terminate already running bar instances
killall -q polybar

# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done

for i in $(polybar -m | awk -F: '{print $1}'); do MONITOR=$i polybar default & done

echo "Bars launched..."