From 1ddf882e2194454a22a07022579e7e794aeea0e8 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Thu, 14 May 2020 12:54:06 +0200 Subject: [PATCH] Add reload option (`-r`) to 'refbar' script --- .local/bin/scripts/refbar | 2 ++ 1 file changed, 2 insertions(+) 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