Revision: 43473
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 24, 2011 18:34 by flexgrip
Initial Code
#!/bin/bash #|||||||||||||||||||||||||||||||| # # ---- BASH SCRIPT FOR WUALA ---- # ---- DOWNLOAD LINK ---- # __by flexgrip at gmail dot com_ # http://rayaguilar.net/portfolio # # predicts the wuala public files link and copies it to the clipboard (paste it with CTRL+v) # REMEMBER you must enter your username and name of your public folder. # required packages: (These are in the ubuntu repositories... use apt-get) # xclip (to copy ip to the clipboard) # notify-send (to send notifications) uname='flex1grip' publicfolder='Public' # build the url buildurl='http://content.wuala.com/contents/'$uname'/'$publicfolder'/'$@'?dl=1' if [ -n "$buildurl" ]; then # copy url into clipboard echo $buildurl | xclip -selection clipboard # echo wuala public link in console echo "Copied public Wuala link: $buildurl" # confirm successful fetch of ip with notification notify-send --icon=/usr/share/icons/gnome/32x32/actions/edit-paste.png "Download link copied!" "$buildurl" else # echo wuala public link in console echo "Error... Wuala link not copied: $buildurl" # confirm successful fetch of ip with notification notify-send --icon=/usr/share/icons/gnome/32x32/actions/gtk-stop.png "Error! Link was not copied..." fi
Initial URL
Initial Description
This nautilus script was written for Wuala to duplicate the "Copy Public Link" feature from Dropbox.
Initial Title
Copy to clipboard and send notification with libnotify
Initial Tags
Bash, script
Initial Language
Bash