dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

transadd (421B)


      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 i3blocks)
      8 
      9 transmission-remote -a "$@" && notify-send "🔽 Torrent added."