Added configuration for transmission
This commit is contained in:
parent
88d1ea0774
commit
4db41ca114
4
.local/share/applications/transmission-remote.desktop
Executable file
4
.local/share/applications/transmission-remote.desktop
Executable 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
15
bin/transmission-add
Executable 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
|
Loading…
Reference in New Issue
Block a user