Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # download today's national geographic photo of the day and set it as wallpaper
- # fails every now and then and does not notice
- # images will be stored in this directory, make sure it exists
- path=/home/me/nationalgeographicpotd/
- 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')
- wget -q -nc -P $path $image
- # you will need to adjust the following line if you are not using XFCE
- 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