starting firefox3 with defined geometry

Warren Block wblock at wonkity.com
Tue Jan 10 20:05:12 UTC 2012


On Tue, 10 Jan 2012, Polytropon wrote:

> On Tue, 10 Jan 2012 09:56:21 +0100, Matthias Apitz wrote:
>> El día Tuesday, January 10, 2012 a las 09:25:54AM +0100, Polytropon escribió:
>>
>>> Answer: Yes, but it's not as easy as it could have been.
>>>
>>> Unlike nearly every other X11 program, notably the "old"
>>> and "outdated" ones, Firefox does _not_ seem to support
>>> the _standard_ -geometry WxH+X+Y parameter.
>>>
>>> However, you can define the window width and height
>>> with command line parameters:
>>>
>>> 	% firefox -width 1024 -height 768
>>
>> does not work with firefox-3.5.18 (from ports) on 9-CURRENT;
>
> Oh the joy of modern software. :-)
>
>
>
>>> ...
>>> There is a "workaround" for the lack of standard
>>> geometry support: You could have Firefox execute
>>> JavaScript instructions at startup
>>>
>>> 	window.moveTo(100, 100);
>>> 	window.resizeTo(1024, 768);
>>
>> will try this in the page source;
>
> You can also provide those as command line parameters
> and have Firefox execute them on startup
>
> 	% firefox javascript:%20resizeTo\(500,500\)

Another option is x11-wm/devilspie.


More information about the freebsd-questions mailing list