X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/0e41b01616fa8eecd6054393877a8c048c93889d..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