From 4db41ca1142fca2e9f7b9c764508c2e8403da284 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 16 Jun 2020 03:02:01 +0200 Subject: [PATCH] Added configuration for transmission --- .../applications/transmission-remote.desktop | 4 ++++ bin/transmission-add | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 .local/share/applications/transmission-remote.desktop create mode 100755 bin/transmission-add diff --git a/.local/share/applications/transmission-remote.desktop b/.local/share/applications/transmission-remote.desktop new file mode 100755 index 0000000..8234b61 --- /dev/null +++ b/.local/share/applications/transmission-remote.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Type=Application +Name=Transmission Remote +Exec=/usr/bin/env transmission-add %U diff --git a/bin/transmission-add b/bin/transmission-add new file mode 100755 index 0000000..d198728 --- /dev/null +++ b/bin/transmission-add @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +address=192.168.50.198 + +set -x + +transmission-remote ${address} -a "$1" &> /dev/null + +status=$? + +if [[ ${status} -eq 0 ]] ; then + notify-send Transmission "Added torrent" +else + notify-send Transmission "Error adding torrent" +fi