Skip to content

Instantly share code, notes, and snippets.

@blurymind
Last active June 9, 2022 18:27
Show Gist options
  • Save blurymind/05875c0a052121dfd9e2fb74277ab7eb to your computer and use it in GitHub Desktop.
Save blurymind/05875c0a052121dfd9e2fb74277ab7eb to your computer and use it in GitHub Desktop.
copyTorrentFileMagnetToClipboard.sh
#!/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