simple transmission remote controling script.

This commit is contained in:
Crony Akatsuki 2022-08-01 17:52:30 +02:00
parent 8cd3230470
commit 1a013814aa

12
dmenu-transmission Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
id=$(transmission-remote -l | dmenu -l 10 | awk '{print $1}'| sed 's/*//')
[ -z "$id" ] && exit 0
case "$(printf "Start\\nStop\\nRemove" | dmenu -p "Torrent Action: ")" in
Remove) transmission-remote -t $id -r ;;
Start) transmission-remote -t $id -s ;;
Stop) transmission-remote -t $id -S ;;
*) exit ;;
esac