Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2012 13:05:09 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        Matthias Apitz <guru@unixarea.de>, freebsd-questions@freebsd.org
Subject:   Re: starting firefox3 with defined geometry
Message-ID:  <alpine.BSF.2.00.1201101303510.6968@wonkity.com>
In-Reply-To: <20120110192745.1f6cd928.freebsd@edvax.de>
References:  <20120110074504.GA1101@tiny> <20120110092554.d3001ca5.freebsd@edvax.de> <20120110085620.GA1186@tiny> <20120110192745.1f6cd928.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---902635197-1898889873-1326225909=:6968
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

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.
---902635197-1898889873-1326225909=:6968--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1201101303510.6968>