
Ubuntu 9.10 Xsplash
Every once in a while, I”ll come into contact with something that I can”t seem to put down: something that makes me giddy, like poptarts for breakfast or a really intriguing story. What has compelled me to curiosity? What new toy has challenged my tinkering spirit? Xsplash, part of the new “boot experience” in Ubuntu 9.10.
When I first installed the latest Ubuntu release (then in Release Candidate form, a few days before the official launch), I was wowed by the boot splash that led up to the login window. It was very smooth and sleek; far nicer than the louder, more pronounced background used in 9.04. As chance would have it, I managed to break the splash screen (but that story is unrelated), and so I went on a relatively short and uneventful journey to restore it back to its former glory. I found a few posts around the web providing information on changing background, and I was able to set things right again.

Customized Xsplash
But the story doesn”t end there! See, I have this neverending quest to attain the perfect blend of functionality and eyecandy on my desktop (well, that”s subjective, but my taste suits me). The magic started to fade after installing 9.10 on two other computers in my house. They all shared the same boot splashes, so, of course I didn”t feel special anymore. I wanted something new. Specifically, I wanted to keep the login background in sync with my desktop wallpaper. That”s what this post is about: customizing your xsplash theme.
Getting your hands dirty
Xsplash details have been pretty rare as far as I can tell. A search for “xsplash documentation” yields… well, nothing really useful, so I”ve had to figure certain things out myself (and other people as well). One of the complaints leveled against xsplash and the new GDM is that there aren”t any official configuration tools yet. This has led some to believe that it”s impossible to customize the appearance, but that”s simply a lack of ingenuity on their part: You just need to know where to look!
Your first stop should be /usr/share/images/xsplash. This directory has a few different images xsplash uses to create all the pretty effects. The filenames are very specific: The background image, logo, and throbber must all conform to their own naming schemes. I have not tested which logo or throbber file is used, but it appears that xsplash will only use a background image named bg_2560x1600.jpg (regardless of whether it”s actually 2560×1600 or a JPEG image—I”ve tested with a 1440×900 PNG image!).
Fire up your terminal
The first thing we want to do is backup the xsplash directory, just in case this blows up and we”re left with a messy, broken xsplash. So start that terminal and type in one of these:
sudo cp -r /usr/share/images/xsplash /usr/share/images/xsplash.bk
cp, of course, copies files from one location to another. Now, we”re going to replace the old xsplash background with whatever our current wallpaper is. I”m sure you already know the path and filename of the image, but that”s not fun to type every time you change your wallpaper. Instead, we can use gconftool to automate this:
bg_file="$(gconftool --get /desktop/gnome/background/picture_filename)"
sudo rm /usr/share/images/xsplash/bg_2560x1600.jpg
sudo cp "${bg_file}" /usr/share/images/xsplash/bg_2560x1600.jpg
The first line retrieves the value of the /desktop/gnome/background/picture_filename property—this is your current wallpaper. The second line removes the xsplash wallpaper, and the third line copies your wallpaper to the xsplash directory, replacing the old image. At this point, you can test your new xsplash by issuing the following command in the terminal:
sudo xsplash
It will disappear after a few seconds (but if you”re in a hurry you can press the ESC key on your keyboard). If your wallpaper appeared instead of the default image, perfect! If it messed up somehow, you”ve still got all the original files backed up, so you can restore them at any time (you can also reinstall the original artwork with sudo apt-get install --reinstall ubuntu-xsplash-artwork). Note that the throbber and logo should also appear (if you left them as-is).
This can be easier…
…so let”s automate the entire thing. I wrote a script that will keep the GDM, Xsplash, and desktop backgrounds in sync. You can get the file here. Whenever you change your wallpaper, just run the script and everything will be taken care of. Admittedly, it”s not as easy as it could be (it is possible to turn it into a wallpaper monitoring daemon), but it was sufficient for my needs.
So, what are you waiting for? Go have some fun customizing xsplash!