Choosing and setting random images from a folder
Choosing the random image
For this Task, you can use the following program:
Setting the chosen Image
You can add the following to your fvwm configuration (for example)
AddToFunc StartFunction
+ I Exec exec Esetroot -scale $(randomimage.lisp)
Where randomimage.lisp is the name of the executable file you named the above as. If you are not using clisp, you have to remove the first line in the program and add the according interpreter call in front of “randomimage.lisp” in your FVWM configuration.
Using XV to set random background image
From the ancient times XV has been used for this purpose in the following way
AddToFunc StartFunction
+ "I" Exec xv -root -max -quit -random ~/.fvwm/images/*
Using wmsetbg to set random background image
wmsetbg has better support for pseudo transparency than xv. It can be used as follows:
AddToFunc StartFunction
+ I Exec exec wmsetbg -a `ls $FVWM_USERDIR/Background/*.jpg|sort -R|tail -1`
Random background color from rgb.txt
Then call it from FVWM
AddToFunc StartFunction
+ I Exec xsetroot -solid $(randomcolor.sh)