note bloat gone; pix replaced with emojis

This commit is contained in:
Luke Smith
2019-02-22 16:39:58 -05:00
parent f3d33a0b67
commit f575dadeef
5 changed files with 7 additions and 19 deletions

View File

@@ -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."