os/+arch: polybar: refactor run.sh

This commit is contained in:
Henrik Lissner 2017-05-10 20:57:21 +02:00
parent 8346717aae
commit ca1472c5c2

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if pgrep polybar; then
killall -q polybar killall -q polybar
while pgrep -x polybar >/dev/null; do sleep 1; done while pgrep -x polybar >/dev/null; do sleep 1; done
fi
polybar main >~/.config/polybar/polybar.log 2>&1 & polybar main >>~/.config/polybar/polybar.log 2>&1 &