Advertisement
Guest User

Untitled

a guest
Feb 16th, 2011
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #!/bin/bash
  2. # download today's national geographic photo of the day and set it as wallpaper
  3. # fails every now and then and does not notice
  4.  
  5. # images will be stored in this directory, make sure it exists
  6. path=/home/me/nationalgeographicpotd/
  7.  
  8. image=$(curl -s http://photography.nationalgeographic.com/photography/photo-of-the-day/ | egrep -o 'http://images.nationalgeographic.com/wpf/media-live/photos/000/[0-9]{3}/custom/[0-9]{5}_1600x1200-wallpaper-[a-z]{2}[0-9]{10}.jpg')
  9. wget -q -nc -P $path $image
  10.  
  11. # you will need to adjust the following line if you are not using XFCE
  12. xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s $path$(basename $image)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement