Apps :: How to maximize  firefox at startup



Howdy,
you surely want something like
Code Sample
[exec] (firefox) {firefox -width 1024 -height 768} </path/to/your/favorite/firefox_icon>

in your ~/.fluxbox/menu (or wherever you save your fluxbox-menu-file).

A good read in any case:
http://www.mozilla.org/docs/command-line-args.html

Regards, Harivolker

Did you try that suggestion before posting it?  You might discover that it doesn't work.
Firefox is based on Mozilla, but it is not Mozilla...not all moz commandline options work for firefox.
Also icons don't work in DSL's fluxbox menu, so it's probably not a good idea to confuse people by including them.

I agree with mikshaw that the suggested line doesn't work, but I'm unsure why it doesn't work.  If you run firefox -help you see the command line switches for height and width are at least documented in the versions of firefox included in dsl.
You might try this, see if it works for you, does for me.
I don't know if Java has to be installed. Also I'm not sure if DSL has xwininfo, tho it's not needed.

Step 1 - start Mozilla or Firefox and adjust the window how you like it.

Step 2 - Open up a terminal window and issue the command "xwininfo" and then click on the Mozilla or Firefox window. This will dump the window settings and geometry to the terminal window.

Step 3 - type this in the url bar to set the window size:

javascript: resizeTo(1024,724);

1024x724 is what xwininfo returned for my preferred size. Substitute with your xwininfo geometry settings.

Step 4 - Close the Mozilla or Firefox window and restart Firefox to make sure the settings have worked.

Troubleshooting:

If you have turned off javascript on the browser, you have to turn it on, make the changes and then turn it back off if you like. It seems that the javascript command causes Firefox or Mozilla to save the settings in the xml file. This has to be done for each user individually.



roadie


original here.