diff options
Diffstat (limited to 'mac/.local/bin/torwrap')
| -rwxr-xr-x | mac/.local/bin/torwrap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mac/.local/bin/torwrap b/mac/.local/bin/torwrap index 54f5c0e..f038361 100755 --- a/mac/.local/bin/torwrap +++ b/mac/.local/bin/torwrap @@ -2,7 +2,7 @@ ifinstalled stig transmission-cli || exit 1 -! pidof transmission-daemon >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." +! pgrep -x transmission-daemon >/dev/null 2>&1 && transmission-daemon && osascript -e 'display notification "Starting torrent daemon..." with title "transmission-daemon"' "${TERMINAL:-st}" -n stig -e stig pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}" |
