summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <atci39@rambler.ru>2024-01-14 12:57:59 +0300
committertsxv478 <atci39@rambler.ru>2024-01-14 12:57:59 +0300
commitebe296bfe6f1dcc965405316ec69beb6862a9fb5 (patch)
treeced234670e569b62cdca7bd2c5d434bc4a3b2ff3
parent31b01d930cd4e33eb52dab9d262a1e8c26954dc2 (diff)
transmission script
-rwxr-xr-xtransadd5
1 files changed, 5 insertions, 0 deletions
diff --git a/transadd b/transadd
new file mode 100755
index 0000000..572a98c
--- /dev/null
+++ b/transadd
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+pidof -q transmission-daemon || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3)
+
+transmission-remote -a "$@" && notify-send "Torrent added"