Skip to content

Instantly share code, notes, and snippets.

@gandaro
Created April 14, 2012 21:47
Show Gist options
  • Save gandaro/2388025 to your computer and use it in GitHub Desktop.
Save gandaro/2388025 to your computer and use it in GitHub Desktop.
Small script that I configured as "Copy Dropbox link" action in Thunar
#!/bin/bash
url=$(dropbox puburl "$1")
if [[ "$url" == http* ]]; then
echo -n $url | sed s/http/https/ | xclip -selection clipboard
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment