Last active
June 9, 2022 18:27
-
-
Save blurymind/05875c0a052121dfd9e2fb74277ab7eb to your computer and use it in GitHub Desktop.
copyTorrentFileMagnetToClipboard.sh
This file contains 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
#!/bin/sh | |
file="$1" | |
transmission-show -m "$file" | xclip -sel clip | |
zenity --notification --text "Magnet link copied to clipboard!" | |
# If you open a torrent file with this script, the file's magnet link will be extracted and copied to the clipboard | |
# this script requires transmission-cli and zenity to be installed | |
# todo: also send to synology somehow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment