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

This commit is contained in:
samedamci 2020-05-14 12:54:06 +02:00
parent b2fe3ec8da
commit 229fe03b3e
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

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