diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 11:49:40 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 11:49:40 -0400 |
| commit | d8f0865799d3641a2f458f8025ef788cc7d7c518 (patch) | |
| tree | 90a661612bbee37c60bcbaa41e2c923fa7f873b2 /.local/bin/transadd | |
| parent | 3e88424b5dc92b34c1cf325a7af5c96e5180e774 (diff) | |
| download | eibhear-d8f0865799d3641a2f458f8025ef788cc7d7c518.tar.gz eibhear-d8f0865799d3641a2f458f8025ef788cc7d7c518.tar.zst eibhear-d8f0865799d3641a2f458f8025ef788cc7d7c518.zip | |
actually, just use pidof
Diffstat (limited to '.local/bin/transadd')
| -rwxr-xr-x | .local/bin/transadd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/transadd b/.local/bin/transadd index a2e080d..1b9599e 100755 --- a/.local/bin/transadd +++ b/.local/bin/transadd @@ -4,6 +4,6 @@ # transmission-daemon sometimes fails to take remote requests in its first moments, hence the sleep. -ps ax | grep -q "\stransmission-daemon$" || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}") & +pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:-dwmblocks}") & transmission-remote -a "$@" && notify-send "🔽 Torrent added." |
