- #!/bin/bash
-
-
- if [ "$1" = "screen" ]
- then
- sleep 1
- A1=$(ls --sort=time $HOME/Dropbox/Public/screenshot | grep Screenshot | head -n 1)
- A2=`dropbox puburl $HOME/Dropbox/Public/screenshot/$A1`
- A3=$(echo -n "http://dl.dropbox.com/u/61252137/$A1" | xsel -b -i)
- gnome-screenshot
- elif [ "$1" = "selected" ]
- then
- A1=$(ls --sort=time $HOME/Dropbox/Public/screenshot | grep Screenshot | head -n 1)
- A2=`dropbox puburl $HOME/Dropbox/Public/screenshot/$A1`
- A3=$(echo -n "http://dl.dropbox.com/u/61252137/$A1" | xsel -b -i)
- gnome-screenshot -a
- elif [ "$1" = "selected" ]
- then
- A1=$(ls --sort=time $HOME/Dropbox/Public/screenshot | grep Screenshot | head -n 1)
- A2=`dropbox puburl $HOME/Dropbox/Public/screenshot/$A1`
- A3=$(echo -n "http://dl.dropbox.com/u/61252137/$A1" | xsel -b -i)
- gnome-screenshot -w
|