diff --git a/os/+arch/.config/polybar/run.sh b/os/+arch/.config/polybar/run.sh index 9d1be12e..c8375cd4 100755 --- a/os/+arch/.config/polybar/run.sh +++ b/os/+arch/.config/polybar/run.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash -killall -q polybar -while pgrep -x polybar >/dev/null; do sleep 1; done +if pgrep polybar; then + killall -q polybar + 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 &