diff --git a/.local/bin/scripts/refbar b/.local/bin/scripts/refbar index e46b720..b213274 100755 --- a/.local/bin/scripts/refbar +++ b/.local/bin/scripts/refbar @@ -1,5 +1,7 @@ #!/bin/sh +[ "$1" = "-r" ] && pkill dbar && { dbar & exit; } + [ ! "$(pgrep dbar)" ] && { dbar & exit; } pkill -P "$(cat "$HOME/.cache/dbar.pid")" sleep