From owner-freebsd-questions@FreeBSD.ORG Tue Jan 10 20:05:12 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A440106564A for ; Tue, 10 Jan 2012 20:05:12 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 476968FC0A for ; Tue, 10 Jan 2012 20:05:11 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id q0AK591b006998; Tue, 10 Jan 2012 13:05:09 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id q0AK59ZJ006995; Tue, 10 Jan 2012 13:05:09 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 10 Jan 2012 13:05:09 -0700 (MST) From: Warren Block To: Polytropon In-Reply-To: <20120110192745.1f6cd928.freebsd@edvax.de> Message-ID: References: <20120110074504.GA1101@tiny> <20120110092554.d3001ca5.freebsd@edvax.de> <20120110085620.GA1186@tiny> <20120110192745.1f6cd928.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-902635197-1898889873-1326225909=:6968" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 10 Jan 2012 13:05:09 -0700 (MST) Cc: Matthias Apitz , freebsd-questions@freebsd.org Subject: Re: starting firefox3 with defined geometry X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 20:05:12 -0000 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--