Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #calvin
- #
- #set this for your self widthxheight - no spaces
- desksize="1680x1050"
- # download image from apod site
- wget -A.jpg -R.txt -r -l1 --no-parent -nH http://antwrp.gsfc.nasa.gov/apod/astropix.html
- # move image from obscure folder to main folder, rename image
- find ./apod -name "*.jpg" | while read line ; do
- mv "$line" "apod.jpg"
- done
- rm -r apod
- convert calvincanvas.png -background transparent -resize $desksize^ \
- -gravity center -extent $desksize^ calvincanvasRS.png
- convert apod.jpg -resize $desksize^ \
- -gravity center -extent $desksize^ apodRS.jpg
- convert apodRS.jpg calvincanvasRS.png -mosaic calvin.jpg
- gconftool-2 --type string --set \/desktop/gnome/background/picture_filename "$PWD/calvin.jpg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement