summaryrefslogtreecommitdiffstats
path: root/polybar/.local/bin/launch-polybar
blob: 49d56ca3f61fe14d5e71778d5977912511f8f503 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env 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

# Launch main bar
polybar example &

echo "Bars launched..."