From owner-freebsd-questions Sun Jul 27 06:08:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id GAA04579 for questions-outgoing; Sun, 27 Jul 1997 06:08:05 -0700 (PDT) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id GAA04568 for ; Sun, 27 Jul 1997 06:08:00 -0700 (PDT) Received: from ct.picker.com by whqvax.picker.com with SMTP; Sun, 27 Jul 1997 9:07:28 -0400 (EDT) Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA21757; Sun, 27 Jul 97 09:07:26 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id JAA03374; Sun, 27 Jul 1997 09:05:04 -0400 Message-Id: <19970727090504.46117@ct.picker.com> Date: Sun, 27 Jul 1997 09:05:04 -0400 From: Randall Hopper To: Stephane Raimbault Cc: questions@FreeBSD.ORG Subject: Re: Window sizes in X References: <33D8AFA7.167EB0E7@cybersurf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <33D8AFA7.167EB0E7@cybersurf.net>; from Stephane Raimbault on Fri, Jul 25, 1997 at 07:52:39AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Stephane Raimbault: |Hello, just wondering if there is a way to make the size of windows when |you start a program always come up to a value the user prefers? | |ex: | |I open Netscape and the size of the window is a certain size but I want |the window to be 800x600 on startup of the program. Is there a way to |force the Netscape windows to open at 800x600 rather than its default |size. For Netscape, couple of things. 1) Use the cmd line option -geometry as another poster suggested, 2) You can put something like this in your .Xdefaults: Netscape.geometry: 800x600+0+0 (don't forget to log out and back in, or "xrdb -load ~/.Xdefaults" to cause it to take effect), or 3) you can create a file called "Netscape" that has the above Netscape.geometry line in it and put it in your X resource file search path. E.g.: mkdir ~/cfg/app-defaults echo "Netscape.geometry: 800x600+0+0" > ~/cfg/app-defaults/Netscape setenv XAPPLRESDIR ~/cfg/app-defaults I prefer option #3 because it keeps my .Xdefaults from being a huge mess (segmenting them by application), reduces possibilities of resource conflicts, reduces application startup time, and avoids having to run anything to retest after changing resources. Most other X apps work similarly. You just need to check the man page to determine what the application class name is (e.g. "Netscape") so you know what to name the file. Randall Hopper