If you can get this to work on your system, you’re a better person than I.
firefox -width 800 -height 600
I can’t remember the last time the command line
width flags worked in Firefox. I don’t know why those flags are there, or if they’re broken, or if they’re deprecated, or if they’re a huge joke the Firefox brainiacs like to play on us normal people. Maybe I’m just using them wrong, or maybe it’s annoying regardless.
But I got tired of resizing the windows every time I moved a profile or changed a screen dimension. So I found two ways to convince Firefox that “me-Tarzan-you-Jane,” and start at the size I want.
The first is to manually edit the localstore.rdf file in your profile, and set the desired size. Of course, that file can be overwritten in the course of using Firefox, so unless you employ a script to open the browser and then restore your preferred sizes after Firefox closes, it might not work on a permanent basis.
Instead, what I’ve been doing is to change the prompt from Openbox or wbar to this:
Note the two backslashes in that line, to escape the parentheses. No matter what your last dimensions were, the screen should bounce back to 800×600. You could conceivably set your home page to that too, if you don’t mind opening Firefox to a blank page, or if you want a one-button size fixer.
Personally I prefer to keep that at the command line, because I can trigger different sizes depending on the situation. In any case, it always feels good to remind Firefox that I’m the boss, no matter how popular and big-headed it has become.