Added configuration for transmission

This commit is contained in:
pgrondek 2020-06-16 03:02:01 +02:00
parent 88d1ea0774
commit 4db41ca114
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,4 @@
[Desktop Entry]
Type=Application
Name=Transmission Remote
Exec=/usr/bin/env transmission-add %U

15
bin/transmission-add Executable file
View File

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