Hi, This is trying to give something back to the Debian community which has already helped me a great deal. It's a small Bash script which allows you to easily switch backgrounds (root window/desktop). It's obviously for non-experts such as myself. It works, but if there's suggestions from the pros, I'd welcome it readily.
xloadimage has to be loaded 1. I place all my images in /usr/local/pics (any directory will do). 2. I have a menu item which does a ls to an xmessage of the pics so I know what's there. 3. I then use "sbg pic(substitute name)" to switch backgrounds. The jpg can obviously be changed as well. Jonathan Here's the code for the Bash script named sbg: #! /bin/sh # Set root window background # Accepts file name as input file=$1 xsetbg /usr/local/pics/$1.jpg clear There's another, equally sipme one for colors named sbgc: #!/bin/sh # Sets root window background color # Accepts color as string color=$1 xsetroot -solid $1 clear