Then you can do that via FvwmEvent and add_window. So something like this:
DestroyModuleConfig FE: *
*FE: Cmd Function
*FE: add_window FuncSomeFunc $[w.name] some_icon.png "-g 0+0"
Module FvwmEvent FE
Starts up FvwmEvent, and tells that alias (FE) to only listen for add_window events – that is, each time a window is mapped, at which time it will run the specified function, passing to it the name of the window that was mapped.
+ I DestroyModuleConfig $0Launch: *
+ I *$0Launch: Geometry 64x68
+ I *$0Launch: Columns 1
+ I *$0Launch: Rows 4
+ I *$0Launch: Frame 0
+ I *$0Launch: (1x3+0+0, Icon $1, Action (Mouse 1) `Function RaiseMe $0`)
+ I *$0Launch: Pixmap none
+ I *$0Launch: (1x1+0+3, Font 9x15, Fore White, Back DarkBlue, \
Title $0, Action (Mouse 1) `Function RaiseMe $0`)
+ I Style $0Launch HandleWidth 0, NoTitle
+ I Module FvwmButtons $2 $0Launch
The above then builds the icon, using the information passed to it. The function RaiseMe would then do something like this:
+ I All ($0) Raise
(Or whatever you wanted.) Note that you’d also want to ignore certain windows, which you can do at the top of the FuncSomeFunc function with:
+ I ThisWindow ("thisname|thatname|anothername") Break
+ I ThisWindow (Transient) Break
I don’t know whether it works, it’s off the top of my head.
If i set Style * NoIcon all running programs appear in the iconbox. Clicking on the icon brings the app to the front( no app is ever minimised, only in the background)
Its not exactly as i want it but close.
Ultimately i want to use an applications mini screenshot as the icon in the iconbox, this shouldnt be a problem should it?
How can i get rid of the text under the icons?
How can i get rid of the iconboxs’ border?
No icon appears for aterm, i know i want to see screenshot icons but untill i get that working ill need the standard one. If i get rid of the text under the icons ill see nothing for the aterm. I have seen a method of setting icons for apps e.g. style “aterm” icon 'blah.png but if i use this that particular app no longer appears in the iconbox - i made the icons appear there by setting Style * NoIcon.
Sorry about the bucnh of questions but im still new at this & cant find it in the documentation.