summaryrefslogtreecommitdiff
path: root/mac/.local/bin/transadd
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-24 12:05:10 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-08-24 12:05:10 +0900
commitb15c6b710f19b74398acd738efb6281183c88b8d (patch)
tree5f23c44e6f06a4b943f4db9d4b9ab69b07bc5446 /mac/.local/bin/transadd
parent818ff6ad1be60d8d0d9de039306d1fc5c7189081 (diff)
updates
Diffstat (limited to 'mac/.local/bin/transadd')
-rwxr-xr-xmac/.local/bin/transadd5
1 files changed, 4 insertions, 1 deletions
diff --git a/mac/.local/bin/transadd b/mac/.local/bin/transadd
index ffd8ded..c6d2e94 100755
--- a/mac/.local/bin/transadd
+++ b/mac/.local/bin/transadd
@@ -4,7 +4,10 @@
# transmission-daemon sometimes fails to take remote requests in its first moments, hence the sleep.
-pidof transmission-daemon >/dev/null || (transmission-daemon && notify-send "💡 Starting transmission daemon..." && sleep 3 && pkill -RTMIN+22 "${STATUSBAR:-dwmblocks}")
+pgrep -x transmission-daemon >/dev/null 2>&1 || (
+ transmission-daemon &&
+ osascript -e 'display notification "💡 Starting transmission daemon..." with title "transmission-daemon"'
+)
directory="$HOME/Torrents"