From 7ae37e95e0fb89343c90f933989ef5f8fc9c37a5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 26 Oct 2020 18:02:47 +0400 Subject: Changed transadd script and .xinitrc --- .local/bin/scripts/transadd | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/scripts/transadd b/.local/bin/scripts/transadd index c269cc9..e73194c 100755 --- a/.local/bin/scripts/transadd +++ b/.local/bin/scripts/transadd @@ -1,2 +1,11 @@ #!/bin/sh -transmission-remote -a "$@" && notify-send "Torrent added" + +directories="/home/andrew/Downloads +/home/andrew/Videos/Movies +/home/andrew/Videos/Series" +dest=$(printf "$directories" | dmenu -p "Choose destination" -i -l 5) +transmission-remote -a "$@" -w "$dest" && notify-send "Torrent added" + +#tname=$(transmission-show "$@" | grep "^Name: " | sed "s/Name: //g") +#tid=$(transmission-remote -l | grep "$tname" | awk '{ print $1 }') +#t -- cgit v1.2.3