Thumbnail MiniIcons instead of normal icons

Im using the thumbnail function, but instead of setting the thumbnail as a normal icon i wanted to set it as the mini icon.

I tried this by simply replacing IconOverride with EWMHMiniIconOverride and Icon with MiniIcon. See below.

[code]DestroyFunc Thumbnail
AddToFunc Thumbnail

  • I Raise
  • I ThisWindow (!Iconic) SetEnv Icon-$[] $[w.iconfile]
  • I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead
    "xwd -silent -id $[] | convert -scale 128 -frame 1x1
    -mattecolor black -quality 0 xwd:- png:$[FVWM_USERDIR]/icon.tmp.$[].png \

&& echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[].png \

 && echo WindowStyle EWMHMiniIconOverride, MiniIcon $[FVWM_USERDIR]/icon.tmp.$[].png \
|| echo Nop"
  • I TestRc (Match) Test (f $[w.miniiconfile], f $[FVWM_USERDIR]/icon.tmp.$[].png) PipeRead
    “composite -geometry +2+4 $[w.miniiconfile] $[FVWM_USERDIR]/icon.tmp.$[].png
    $[FVWM_USERDIR]/icon.tmp.$[].png; echo Nop”
    #+ I Iconify[/code]

However this doesnt work.

I worte this to see if the general idea works and it does - all miniicons are replaced with the icon specified:

[code]DestroyFunc Test
AddToFunc Test

  • I ThisWindow WindowStyle EWMHMiniIconOverride, MiniIcon hello.png
  • I ThisWindow WindowStyle IconOverride, Icon hello.png[/code]

Any ideas?

I’m not sure but… remove the whole line (the commented one).

##   && echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[].png \