summaryrefslogtreecommitdiffstats
path: root/polybar/.local/bin/polybar-launch
blob: 4fcd323439d69712d761479592364f46365d69b2 (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 main &

echo "Bars launched..."