On 21/08/07, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to controll some events from a script using FvwmEvent but > there are parameters from which I do not know what ist is... > > I have following config: > > ----[ '$[FVWM_USERDIR]/modules/FvwmWindowStatus']----------------------- > > DestroyModuleConfig FvwmWindowStatus * > > *FvwmWindowStatus: Cmd '$[HOME]/bin/tdfvwm-windowstatus $[w.class]'
You want "Exec" as the command most likely, hence: *FvwmWindowStatus: Cmd Exec > *FvwmWindowStatus: iconify iconify Then here, you would do: *FvwmWindowStatus: iconify my_program_name params Quite why you think you need an external program to be launched is beyond me. What is it you're trying to do? Your best bet is to just launch a function for each action you want and conditionally run things in there. > What are those parameters for? (FvwmIdent gaved me no hints) Those are the FDs, context, etc., passed down to the module when FVWM invokes it. > Question: > > How can I get events like "Maximize" if a $USER klick the Maximize > button? There is no "maximized" event condition. You want to listen on configure_window for that and have a function invoked such that: DestroyFunc SomeFunc AddToFunc SomeFunc + I ThisWindow (name, Maximized) Echo "I was maximized" Of course, this really isn't a good solution. Instead, you're better off assigning a function to the button which maximizes the window. If that happens to be via a key binding, then you would need FvwmEvent. Read: http://linuxgazette.net/127/adam1.html For a better understanding. -- Thomas Adam
