dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

transadd (429B)


      1 #!/usr/bin/env sh
      2 
      3 # Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running.
      4 
      5 # transmission-daemon sometimes fails to take remote requests in its first moments.
      6 
      7 pgrep -x transmission-da || (transmission-daemon && notify-send "Starting transmission daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:?}")
      8 
      9 transmission-remote -a "$@" && notify-send "🔽 Torrent added."