hullo, 2011/10/30 Thomas Adam <[email protected]>: > On Sun, Oct 30, 2011 at 08:09:52PM +0000, Harry portobello wrote: >> How do i do this with FvwmEvent? Thanks.. > > Something like: > > DestroyFunc CountWindow > AddToFunc CountWindow > + I SetEnv WindowCount 0 > + I All ($[w.class], !Transient) PipeRead \ > `echo SetEnv WindowCount $$$$(($$$$WindowCount + 1))` > + I PipeRead `[ $WindowCount = 1 ] && echo \ > "WindowStyle TitleFormat %n" || echo "Nop"` > + I UnsetEnv WindowCount > > DestroyModuleConfig FE-tweakttformat > *FE-tweakttformat: add_window CountWindow > > AddToFunc StartFunction I Module FvwmEvent FE-tweakttformat > > Change to suit your needs. I have not tested this myself.
this works but is complex. can you tell me how it works? would be nice still for such things to be part of %t for titleformat Harry
