summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2020-10-26 18:02:47 +0400
committerAndrew <saintruler@gmail.com>2020-10-26 18:02:47 +0400
commit7ae37e95e0fb89343c90f933989ef5f8fc9c37a5 (patch)
treeb7fddd3aa148339716a31e9dce6c1e5eb5933c01
parent2cd92521380bc25cdf40dda508498aa9a3029044 (diff)
Changed transadd script and .xinitrc
-rwxr-xr-x.local/bin/scripts/transadd11
-rw-r--r--.xinitrc5
2 files changed, 13 insertions, 3 deletions
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
diff --git a/.xinitrc b/.xinitrc
index b67ef74..af658dd 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -7,8 +7,9 @@ elif [ "$DISPLAY_SESSION" = "openbox" ]; then
elif [ "$DISPLAY_SESSION" = "xmonad" ]; then
session_line=xmonad
else
- echo "DISPLAY_SESSION not specified. Exiting..."
- exit 1
+ session_line="$DISPLAY_SESSION"
+ # echo "DISPLAY_SESSION not specified. Exiting..."
+ # exit 1
fi
[ -f /etc/xprofile ] && . /etc/xprofile