summaryrefslogtreecommitdiffstats
path: root/.config/polybar/launch.sh
blob: a99d4523523c07d94715a919d5969e836ce222df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Try your luck one last time
fc-cache -fv

# Terminate already running bar instances
killall -q polybar

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

# Launch bar
polybar top &

echo "Bar launched..."