Apparently os.popen() has gone out of style.  I had no idea.  I’ve replaced calls to os.popen() with the much trendier subprocess.call() and subprocess.Popen().

It also now won’t set your wallpaper to nonexistant wallpapers that you’ve deleted since you last ran the update script.  If it picks a wallpaper and finds out that it no longer exists, it just tries again until it finds a suitable wallpaper or just gives up.

Grab the new tarball here.

Wallpaper Switcher

May 20, 2008

I’ve put together a couple of python scripts to automate switching wallpapers at regular intervals in Linux.  It uses localtime and the average color of individual wallpapers to try to choose wisely — the script should deliver bright pictures during the day, dark pictures during the night, and medium pictures in between.  It’s currently written to use gnome but it should be easily modifiable for other DEs and WMs.

Grab the initial release tarball here.