dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 23c1ab7e80760c1269690ac8aae0743caffe3861
parent 792031d5469e7fb50b84fa27385021051dba347b
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 25 Apr 2021 10:29:20 +0100

.s/d/torrent: exit with no daemon

Diffstat:
M.scripts/dwmblocks/torrent | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/.scripts/dwmblocks/torrent b/.scripts/dwmblocks/torrent @@ -1,5 +1,10 @@ #!/bin/sh +pgrep transmission || { + echo '[^c#cc0000^none]' + exit 1 +} + transmission-remote -l | sed 's/Up & Down/Updown/' | awk '$8 != "Status" && $8 != ""' \ | sed 's/.*Seeding/Seeding/;s/.*Updown/Downloading\nSeeding/; s/.*Downloading/Downloading/;s/.*Idle/Idle/;s/.*Queued/Queued/;