nitrogen /path/to/background/imagesThis brings up a GUI from which you can select, stretch, etc. your desired image.
You can restore the most recently set background image with the command:
nitrogen --restoreIf you place this command in your session startup scripts, every time you login to your session nitrogen will restore your background image.
The only problem with nitrogen is that its image browser expects to be told the directory to search for images. In other words, it does not have a built-in directory browser. To that end, I wrote the following little script to wraps nitrogen inside a directory selection GUI. Enjoy.
#! /bin/bash
# Mithat Konar 2009-06-07
# Wraps nitrogen inside a directory selection GUI.
# Requires: nitrogen, zenity
ui_browseTitle="Select a directory (Cancel to quit)"
theDirectory=~
while [ "$theDirectory" != "" ]; do
theDirectory=$(zenity --file-selection --title "$ui_browseTitle" --directory --filename="${theDirectory}/");
if [ "$theDirectory" != "" ]; then
nitrogen --no-recurse "$theDirectory"
fi
done