Add polybar launch script

This commit is contained in:
LordMathis 2018-06-11 21:22:15 +02:00
parent c21f230f8c
commit e5341e54fc
1 changed files with 10 additions and 0 deletions

10
.config/polybar/launch.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env sh
# 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 polybar
polybar default &