Edit 'dbar' and 'refbar' scripts

This commit is contained in:
Wiktor Zykubek 2020-05-14 12:29:22 +02:00
parent 5deb731c74
commit 3804f7d5fa
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,8 @@ sym="|"
# [ "$(transmission-remote -l | grep %)" ] && delay="10s" || delay="1m"
delay="1m"
echo "$$" > "$HOME/.cache/dbar.pid"
cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1
status() {

View File

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