Created
February 16, 2025 15:06
-
-
Save LevitatingBusinessMan/15c29f6c87caf1e19713391369422ccf to your computer and use it in GitHub Desktop.
Open torrent directory via transmission-remote-gtk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
if test (count $argv) -lt 1 | |
echo "Usage: tsopen.fish %{full-path}" | |
echo "See also https://github.com/transmission-remote-gtk/transmission-remote-gtk/wiki/Local-Command-usage" | |
else | |
for fullpath in $argv | |
set dir (mktemp -d) | |
sshfs archpi.rlyeh:$fullpath $dir; or notify-send tsopen.fish "failed to ssh"; and exit | |
open $dir | |
end | |
end | |
# this script could be improved by mounting the torrent by their hashid | |
# this way an existing mount can be reused |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment