I changed a few things. I add the style in components/styles/FVWM:
Style stalonetray UseStyle FvwmPartsHmm, this was easy.
And I use a FvwmButtons:[code]
Trayer width, the first number is the icons number, adjust it to fit yours needs
PipeRead ‘echo SetEnv trayer_width $((8*24))’
AddToFunc StartFunction I Exec exec killall stalonetray
DestroyModuleConfig FvwmStalonePanel: *
*FvwmStalonePanel: Frame 0
*FvwmStalonePanel: Font none
*FvwmStalonePanel: ActiveColorset $[cs-panel-active]
*FvwmStalonePanel: Colorset $[cs-panel-inactive]
*FvwmStalonePanel: Columns 1
*FvwmStalonePanel: Rows 1
*FvwmStalonePanel: (1x1, Padding 0 0, Swallow (NoClose) “stalonetray” ‘Exec stalonetray
Module FvwmButtons -g 24x$[trayer_width]-1+170 FvwmStalonePanel[/code]This is for the corner recipe. The “killall stalonetray” is maybe not so elegant, but it work. I don’t loose any icon when changing the recipe.
EDIT: I removed the ReSpawn option. It work fine without it.
EDIT2: As I cannot figure out how it can be possible to make a FvwmButton with a dynamically variable size (I don’t even think at it is possible in this case), I modified the button with a variable.