/ Published in: Bash

This nautilus script was written for Wuala to duplicate the "Copy Public Link" feature from Dropbox.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/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
Comments
