note bloat gone; pix replaced with emojis
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user