Add reload option (-r) to 'refbar' script

This commit is contained in:
Wiktor Zykubek 2020-05-14 12:54:06 +02:00
parent 3804f7d5fa
commit 1ddf882e21

View File

@ -1,5 +1,7 @@
#!/bin/sh
[ "$1" = "-r" ] && pkill dbar && { dbar & exit; }
[ ! "$(pgrep dbar)" ] && { dbar & exit; }
pkill -P "$(cat "$HOME/.cache/dbar.pid")" sleep