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.
-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)