From 3b0142cedcde39e4c2097ecd916a870a3ced5ec6 Mon Sep 17 00:00:00 2001 From: Vito Graffagnino Date: Tue, 8 Sep 2020 18:10:49 +0100 Subject: Added the relevent parts of the .config directory. Alss add ssh config --- .i3/scripts/transadd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .i3/scripts/transadd (limited to '.i3/scripts/transadd') diff --git a/.i3/scripts/transadd b/.i3/scripts/transadd new file mode 100755 index 0000000..8cc7e80 --- /dev/null +++ b/.i3/scripts/transadd @@ -0,0 +1,12 @@ +#!/bin/sh + +# 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. + +pgrep -x transmission-da || (transmission-daemon && note "Starting daemon..." "$PIX/dl.png" && sleep 3 && pkill -RTMIN+7 i3blocks) + +transmission-remote -a "$@" && note "Torrent added." "$PIX/dl.png" -- cgit v1.2.3