January 21, 2007

Random Background Images

I got bored the other day and wanted to see if I could set up a way to randomly
change the background image in GNOME from a directory of jpg files.

After a bit of experimentation, I came up with this:

gconftool -t str -s /desktop/gnome/background/picture_filename "`find
"$BACKGROUND_DIR" -name \*.jpg | random | tail -n 1`"

Link: Gnome Hacks

Click Here!