Advertisement
Guest User

Calvin + NASA

a guest
Sep 6th, 2010
1,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. #calvin
  2. #
  3. #set this for your self widthxheight - no spaces
  4. desksize="1680x1050"
  5. # download image from apod site
  6. wget -A.jpg -R.txt -r -l1 --no-parent -nH http://antwrp.gsfc.nasa.gov/apod/astropix.html
  7. # move image from obscure folder to main folder, rename image
  8. find ./apod -name "*.jpg" | while read line ; do
  9. mv "$line" "apod.jpg"
  10. done
  11. rm -r apod
  12. convert calvincanvas.png -background transparent -resize $desksize^ \
  13. -gravity center -extent $desksize^ calvincanvasRS.png
  14. convert apod.jpg -resize $desksize^ \
  15. -gravity center -extent $desksize^ apodRS.jpg
  16. convert apodRS.jpg calvincanvasRS.png -mosaic calvin.jpg
  17. gconftool-2 --type string --set \/desktop/gnome/background/picture_filename "$PWD/calvin.jpg"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement