On Sat, May 06, 2006 at 02:14:33PM +0100, Zhang Le wrote:
> Hi,
>  I have two questions on using fvwm and can not find answer from FAQ:
> 1. I'm using the following hotkey in my fvwmrc to active firefox.
> How to modify this so that I can launch firefox with main window
> maximized? 
>
> Key F A CM Exec firefox

Firefox, like Mozilla, tend to remember their geometry from window ->
window.  If all you want is to have said application maximized, then you
can use FvwmEvent to test for the presence of a window (or windows) as
in:

DestroyModuleConfig FE-Max: *
*FE-Max: Cmd Function
*FE-Max: add_window somefunction

DestroyFunc somefunction
AddToFunc   somefunction
+ I ThisWindow (Firefox-bin, !Maximized) Maximize

I've used the class name of Firefox -- I suggest you do the same.  You
can ascertain that from using either FvwmIdent on a FireFox window, or
xprop(1).

>  2. How can I add an "always on top" entry to the window menu so that
> I can make certain window always on/off top?

AddToFunc menuname "AlwaysOnTop" Layer 0 6

-- Thomas Adam

--  
I've been too honest with myself, I should have lied like everybody else.

Reply via email to