Macsen’s Transitioning Background: An XML powered wallpaper switcher for Gnome 2

While on holiday last month, my four-year-old son got hold of my camera and started taking photos. Lots of photos, some of which were quite good. Being the proud father that I am, I decided I wanted my desktop background to rotate through some of these photos.

This is very easy to achieve with Gnome 2 – and is implemented in the Cosmos transitioning wallpaper. So on the Monday, I copied a bunch of resized photos into a folder under /usr/share/backgrounds, copied the XML file that powers Cosmos into the same folder, tweaked it, and was rather pleased to find my desktop wallpaper smoothly transitioning from one photo to the next.

On Tuesday, I added a few more photos and amended the XML file accordingly. By Wednesday, I was bored of manually editing the XML and started thinking about how best to automate this.

I have finally found a bit of time to do something about this and am now ready to release version 0.1 of Macsen’s Transitioning Background.

It’s probably not the most elegant solution (there is a lot of copying and pasting going on in the build() function) and the resulting XML file is not pretty. But it works.

You can find a tarball and some instructions on the MTB Project Page or browse the source at GitHub.

One thought on “Macsen’s Transitioning Background: An XML powered wallpaper switcher for Gnome 2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s