Fix polybar script issue

This commit is contained in:
natemaia
2017-12-08 02:03:03 -08:00
parent ea01d6facd
commit 15c324b030
3 changed files with 32 additions and 21 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
while pgrep polybar >/dev/null; do
killall -q polybar && sleep 0.5
while [ "$(pidof polybar)" ]; do
pkill polybar && sleep 0.5
echo "Bars stopped..."
done
echo "Bars stopped..."