X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/1f74c946d08b1f1f83e5ae839e09b0b0c9c0d9aa..d3d785e17abc600d804e075d95f1e8d0afbc1bee:/common/wallpaper diff --git a/common/wallpaper b/common/wallpaper index acd270f..a80e320 100644 --- a/common/wallpaper +++ b/common/wallpaper @@ -23,4 +23,8 @@ AddToFunc SetWallpaper + I Exec exec $[SETROOT] "$[BGFILE]" AddToFunc InitFunction - + I Exec exec $[SETROOT] "$[BGFILE]" + + I Exec if [ -f "$[BGFILE]" ]; then \ + $[SETROOT] "$[BGFILE]"; \ + else \ + $[SETROOT] "$($[FVWM_USERDIR]/scripts/randombg.pl $[BGROOT])"; \ + fi