X-Git-Url: https://git.draconx.ca/gitweb/fvwmconf.git/blobdiff_plain/d3d785e17abc600d804e075d95f1e8d0afbc1bee..735fb38c868231eb4504ffc9747edf9c7939a9a9:/common/wallpaper diff --git a/common/wallpaper b/common/wallpaper index a80e320..07e40cd 100644 --- a/common/wallpaper +++ b/common/wallpaper @@ -4,7 +4,7 @@ SetEnv BGFILE "$[FVWM_USERDIR]/.state/wallpaper$[screen].png" SetEnv BGROOT "$[HOME]/wallpaper" CopyMenuStyle * MenuWallpaper -MenuStyle MenuWallpaper ItemFormat "%.2|%5.5c%2.3>%1|" +MenuStyle MenuWallpaper ItemFormat "%.2|%5.5c%-16.3>%1|" DestroyMenu MenuWallpaper AddToMenu MenuWallpaper @@ -22,9 +22,13 @@ AddToFunc SetWallpaper + I Exec exec ln -sf "$0" "$[BGFILE]" + I Exec exec $[SETROOT] "$[BGFILE]" -AddToFunc InitFunction +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