From: Nick Bowler Date: Sun, 1 Jun 2008 01:09:56 +0000 (-0400) Subject: Select a random wallpaper if none is set explicitly. X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/commitdiff_plain/d3d785e17abc600d804e075d95f1e8d0afbc1bee Select a random wallpaper if none is set explicitly. --- 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