summaryrefslogtreecommitdiff
path: root/.config/waybar/waybar.sh
blob: 720620c5e871cd5c017a3ff00a47c186567fe80f (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh

# Terminate already running bar instances
killall -q waybar

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

# Launch main
waybar