commit b847b89279a639f387fd6e9e8b8a3963ad9eeea2
parent 4c983d9b7afd3b2059e0ef4afc5e1f9b9b50bd5b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 27 Dec 2018 19:50:53 +0100
Add t-stop-idle (untested)
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/links/.commands.sh b/links/.commands.sh
@@ -198,5 +198,10 @@ t-list() {
t-stop() {
transmission-remote --torrent $@ --stop
}
+t-stop-idle() {
+ for id in $(t-list | grep Idle | awk '{ print $1 }' | tr '\n' ','); do
+ t-stop $id
+ done
+}
[ -f ~/.shortcuts ] && source ~/.shortcuts