summaryrefslogtreecommitdiffstats
path: root/.scripts/tools/transadd
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-02-22 16:39:58 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-02-22 16:39:58 -0500
commitf575dadeefc6d8b58b3f13b12a315b25de2332b5 (patch)
treefb200733f0fdd66fa23fb5ab97070e2b1de86ab2 /.scripts/tools/transadd
parentf3d33a0b67ebc1f15a12673645935a5cbde0300d (diff)
downloadeibhear-f575dadeefc6d8b58b3f13b12a315b25de2332b5.tar.gz
eibhear-f575dadeefc6d8b58b3f13b12a315b25de2332b5.tar.zst
eibhear-f575dadeefc6d8b58b3f13b12a315b25de2332b5.zip
note bloat gone; pix replaced with emojis
Diffstat (limited to '.scripts/tools/transadd')
-rwxr-xr-x.scripts/tools/transadd11
1 files changed, 4 insertions, 7 deletions
diff --git a/.scripts/tools/transadd b/.scripts/tools/transadd
index 0ab4784..ad2ee7f 100755
--- a/.scripts/tools/transadd
+++ b/.scripts/tools/transadd
@@ -1,12 +1,9 @@
#!/bin/sh
-# Mimeapp script for adding torrent to transmission-daemon, but will also start
-# the daemon first if not running.
+# Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running.
-# Optionally requires my `note` script. The sleep of 3 seconds is because the
-# transmission-daemon sometimes fails to take remote requests in its first
-# moments.
+# transmission-daemon sometimes fails to take remote requests in its first moments.
-pgrep -x transmission-da || (transmission-daemon && note "Starting daemon..." "$PIX/dl.svg" && sleep 3 && pkill -RTMIN+7 i3blocks)
+pgrep -x transmission-da || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 i3blocks)
-transmission-remote -a "$@" && note "Torrent added." "$PIX/dl.svg"
+transmission-remote -a "$@" && notify-send "🔽 Torrent added."