Post contrassegnati da tagwallpaper

Random wallpaper for Gnome

I really love the comic strips of this site: http://pbfcomics.com/
This simple bash script replace your background image with a random strip from the website:

#!/bin/bash
gconftool -s /desktop/gnome/background/picture_options -t string "centered"
while true; do
    wget -q http://pbfcomics.com/`curl -s http://pbfcomics.com/?comic=random | sed -n 's/.*id="topimg" src="([^"]*)".*/1/p'` -O - > current
    gconftool -s /desktop/gnome/background/picture_filename -t string "$PWD/current"
    sleep 1800
done

If you have any enhancement you are welcome ;)

Commenti (2)