Re: manipulating the winlist

Brandon Stewart (rostewa2@vt.edu)
Wed, 22 Jul 1998 00:32:31 +0000


dep wrote:
> 
> On 20-Jul-98 Brandon Stewart wrote:
> | My geometry is -0-0, which puts the winlist on the bottom of the screen
> | (at least in my case). I'm running version 1.5 pre 6, which may have a
> | different way of positioning the winlist.
> 
> bingo! thanks! (i ran mine either +0-0 or -0+0, whichever one it is that
> puts it against the left side of the screen.) whereupon the question for
> further use: just how do the coordinates of window geometry work? by that
> i mean, using a non-zero number, what would one get? (i'm speaking here in
> general terms, as opposed to the window list in particular.)

just run '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



X Version 11               Release 6.3                          5





X(1)                                                         X(1)





       the form -geometry  WIDTHxHEIGHT+XOFF+YOFF  (where  WIDTH,
       HEIGHT,  XOFF, and YOFF are numbers) for specifying a pre-
       ferred size and location for this application's main  win-

       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 cor-
       responding edge of the window.  The X offset may be speci-

       +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

       -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


       +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

       -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

       Offsets  must  be given as pairs; in other words, in order
       to specify either XOFF or YOFF both must be present.  Win-
       dows 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



X Version 11               Release 6.3                          6





X(1)                                                         X(1)


       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 &
.
.
.

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.caldera.com/linuxcenter/forums/afterstep.html