
On Wednesday 21 January 2009 22:19, Chakat Sandwalker wrote:
This is a bug that's been driving me nuts for ages. If Totem is set to its minimum (default) size, when the Open File dialog is opened it's automatically reduced to as small as possible, which means I have to grab hold of the bottom-right corner and drag the window bigger so I can see the files. However, if the Totem window is enlarged slightly, when the dialog is opened again it's often at its regular full size.
Thus the question is, is it possible to specify what size an application window should be? Personally I'd love to set the size of the dialog window, but I've no idea if /that/ is possible.
You can set the initial size of an application using the -geometry option available for X applications.
From "man X":
GEOMETRY SPECIFICATIONS One of the advantages of using window systems instead of hardwired terminals is that applications don't have to be restricted to a particular size or location on the screen. Although the layout of windows on a display is controlled by the window manager that the user is running (described below), most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window. The WIDTH and HEIGHT parts of the geometry specification are usually measured in either pixels or characters, depending on the application. The XOFF and YOFF parts are measured in pixels and are used to specify the distance of the window from the left or right and top and bottom edges of the screen, respectively. Both types of offsets are measured from the indicated edge of the screen to the corresponding edge of the window. The X offset may be specified in the following ways: +XOFF The left edge of the window is to be placed XOFF pixels in from the left edge of the screen (i.e., the X coordinate of the window's origin will be XOFF). XOFF may be negative, in which case the window's left edge will be off the screen. -XOFF The right edge of the window is to be placed XOFF pixels in from the right edge of the screen. XOFF may be negative, in which case the window's right edge will be off the screen. The Y offset has similar meanings: +YOFF The top edge of the window is to be YOFF pixels below the top edge of the screen (i.e., the Y coordinate of the window's origin will be YOFF). YOFF may be negative, in which case the window's top edge will be off the screen. -YOFF The bottom edge of the window is to be YOFF pixels above the bottom edge of the screen. YOFF may be negative, in which case the window's bottom edge will be off the screen. Offsets must be given as pairs; in other words, in order to specify either XOFF or YOFF both must be present. Windows can be placed in the four corners of the screen using the following specifications: +0+0 upper left hand corner. -0+0 upper right hand corner. -0-0 lower right hand corner. +0-0 lower left hand corner. In the following examples, a terminal emulator is placed in roughly the center of the screen and a load average monitor, mailbox, and clock are placed in the upper right hand corner: xterm -fn 6x10 -geometry 80x24+30+200 & xclock -geometry 48x48-0+0 & xload -geometry 48x48-96+0 & xbiff -geometry 48x48-48+0 & ------------------------------------------------------- So if you wanted to launch Totem with an initial window size of 300 pixels wide, 200 pixels high, located 30 pixels down and 30 pixels right of the top left of your screen, you could try: Right-clicking on the Totem entry in your application launcher (aka "start menu") then edit the entry, changing the command line options from "totem" to "totem -geometry 300x200+30+30" Or, Apparently you can edit your ~/.Xdefaults file and add a line that reads: totem -geometry 300x200+30+30 Or, Make a shell script that reads: #!/bin/bash totem -geometry 300x200+30+30 & and then create a link to it from your desktop and use the link when you want to launch totem. (Don't forget to make the script executable) HTH, Wayne