simple transmission remote controling script.
This commit is contained in:
parent
8cd3230470
commit
1a013814aa
12
dmenu-transmission
Executable file
12
dmenu-transmission
Executable 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
|
Loading…
Reference in New Issue
Block a user