summaryrefslogtreecommitdiffstats
path: root/.local/bin/launch_polybar
blob: 0af1579acaf1343ae27df964cf04c0a6f9d80944 (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 ps ax | grep -q "\spolybar$"; do sleep 1; done

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

echo "Bars launched..."