X-Git-Url: http://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/eecdebcd2e2f90acc7a19ced1896a87dac6c3e0f..cdf15feee987a712142d6a6a9def66c1fde74f04:/common/wallpaper diff --git a/common/wallpaper b/common/wallpaper index acd270f..b858eb4 100644 --- a/common/wallpaper +++ b/common/wallpaper @@ -22,5 +22,13 @@ AddToFunc SetWallpaper + I Exec exec ln -sf "$0" "$[BGFILE]" + I Exec exec $[SETROOT] "$[BGFILE]" -AddToFunc InitFunction - + I Exec exec $[SETROOT] "$[BGFILE]" +DestroyFunc SetInitialWallpaper +AddToFunc SetInitialWallpaper + + I Exec if [ -f "$[BGFILE]" ]; then \ + $[SETROOT] "$[BGFILE]"; \ + else \ + $[SETROOT] "$($[FVWM_USERDIR]/scripts/randombg.pl $[BGROOT])"; \ + fi + +AddToFunc InitFunction I SetInitialWallpaper +AddToFunc SessionInitFunction I SetInitialWallpaper