FvwmButtons --> minimize window into thumbnail?

This how the window minimize button works and creates a thumbnail.

# To Create a Thumbnail on Minimize
# Call the script to create a thumbnail using ImageMagick & xwd
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I ThisWindow (Shaded) WindowShade
+ I PipeRead 'bash $[scripts]/Diary-Thumbnail/crthumb "$[w.id]" "$[cache]"'

Mouse binding

# Titlebar Buttons
Mouse 1 5 A Thumbnail

Decor config

AddButtonStyle 5 \
	ActiveUp (Pixmap $[icons]/iconify.png -- Flat) \
	ActiveDown (Pixmap $[icons]/iconify.png -- Flat) \
	Inactive (Pixmap $[icons]/iconify.png -- Flat)

HOW TO do the same with FvwmButtons?
Current button config…

*FvwmButtons: (Title Min, Icon Down, Action Iconify )

This minimizes but doesn’t create a thumbnail.

*FvwmButtons: (Title Min, Icon Down, Action Thumbnail )

Hi @rasat

You’d have to work out how the thumbnail script works. There’s a few other alternatives on the FvwmWiki – have you tried them:

Thanks, found what was missing.
+ I Raise

Found another site that shows how to create a thumbnail without the bash script I was using… click here and scroll down to…

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
       "xwd -silent -id $[w.id] | convert -scale 64 -frame 1x1 \
       -mattecolor black -quality 0 xwd:- \
       png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
       && echo WindowStyle IconOverride, \
       Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
       || echo Nop"
+ I Iconify

A thumbnail “-scale 160” looks nice.