From d3d785e17abc600d804e075d95f1e8d0afbc1bee Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 31 May 2008 21:09:56 -0400 Subject: [PATCH] Select a random wallpaper if none is set explicitly. --- common/wallpaper | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.43.0