# ------------------------------------------------------------------------
# FvwmBacker is not used any more by default

DestroyModuleConfig FvwmBacker: *

*FvwmBacker: Command (Desk 0) \
	Exec exec xsetroot -mod 4 4 -fg rgb:54/6/6 -bg grey20

*FvwmBacker: Command (Desk 1) \
	Exec exec xsetroot -mod 4 4 -fg grey20 -bg rgb:00/0B/4F

*FvwmBacker: Command (Desk 2) \
	Exec exec xsetroot -mod 4 4 -fg grey20 -bg rgb:4F/00/0C

*FvwmBacker: Command (Desk 3) \
	Exec exec xsetroot -mod 4 4 -fg grey20 -bg rgb:0A/4D/00

# ------------------------------------------------------------------------
# A function which choose an appropriate set root program which can scale
# an image 
DestroyFunc AFuncCheckAndSetScaledBg
AddToFunc   AFuncCheckAndSetScaledBg
+ I Test (x wmsetbg) Exec exec wmsetbg --scale $0
+ I TestRc (Match) break 1
+ I Test (x xwininfo x display) Exec exec display -window root -geometry `xwininfo -root | grep geometry | cut -d" " -f4`\! $0
+ I TestRc (Match) break 1
+ I Test (x Esetroot) Exec exec Esetroot -scale $0
+ I TestRc (Match) break 1
+ I Test (x xv) Exec exec xv -root -quit -max $0
+ I TestRc (Match) break 1
# no program found!
+ I Exec exec xsetroot -mod 4 4 -fg rgb:54/6/6 -bg grey20

DestroyFunc AFuncSetBackground
AddToFunc   AFuncSetBackground
#+ I AFuncRestartModule FvwmBacker
+ I AFuncCheckAndSetScaledBg $[METISSE_FVWM_CONFIG_DIR]/images/backgrounds/metissebg-1.jpg
