summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-08-06 23:36:32 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-08-06 23:36:32 +0400
commit5c0fc079b4a4a0b753f7b9a4e4e75a14d6aacfd0 (patch)
treeb95cc89910e2d56d8f1978e3ae845e71a7fa7be1 /.local/bin
parent84f5f74b85dded8d0f02db7691bbff2915813bbd (diff)
Added desktop target to transopen
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/scripts/transopen5
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/scripts/transopen b/.local/bin/scripts/transopen
index 3897ef0..62cb68a 100755
--- a/.local/bin/scripts/transopen
+++ b/.local/bin/scripts/transopen
@@ -2,6 +2,7 @@
# Possible servers
hosts="raspberry
+desktop
localhost"
if [ -z "$1" ]; then
@@ -12,6 +13,10 @@ fi
case $host in
localhost) tremc -c localhost ;;
+ desktop)
+ host=$(pass Services/transmission/desktop-host)
+ creds=$(pass Services/transmission/desktop-creds)
+ tremc -c "$creds@$host" ;;
raspberry)
host=$(pass Services/transmission/rpi-host)
creds=$(pass Services/transmission/rpi-creds)