os/+arch: polybar: refactor run.sh
This commit is contained in:
parent
8346717aae
commit
ca1472c5c2
|
@ -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 &
|
||||||
|
|
Loading…
Reference in a new issue