How do I change the layout of my windows?

Window layout can be specified during login through customization of the .xinitrc file in your home directory. Standard X clients, such as xterm and xload, accept a -geometry option:
		xapp -geometry WIDTHxHEIGHT+x+y
WIDTH and HEIGHT are integer values. x and y are also integers which specify the upper left corner of the client relative to the total display. + and - are used to denote which part of the display is used as a reference.

examples

  • xeyes -geometry 100x100+0+0

    The application is positioned in the upper left-hand corner.

  • xeyes -geometry 100x100-0+0

    The application is positioned in the upper right-hand corner.

  • xeyes -geometry 100x100+0-0

    The application is positioned in the lower left-hand corner.

  • xeyes -geometry 100x100-0-0

    The application is positioned in the lower right-hand corner.

  • A very helpful utility program written by Frank Adelstein (OSU) for specifying the layout of X clients is xlayout. It will determine settings for all of the client applications running on a display such as geometry, whether a client is iconified, etc... Then it will write this information in the form of a script which can be included in your .xinitrc file! This means, that you can create all of the client applications that you wish to initiate at login, arrange them on your display, and then use xlayout to write your startup script for you. Be sure to run these as background processes by adding & to the end of each line.

    example (without & added)

    % xlayout
    
    xload -rv -update 2 -jumpscroll 1 -label 'Surf Report' -geometry
        351x93+797+0
       
    xterm -fn 6x10 -T Console -sl 200 -C  -iconic   -geometry 80x24+1+1   
    cuebiff   -geometry 64x64+200+1   
    xterm -T Mail -e elm  -geometry 80x24+200+200   
    emacs /tmp/snd.8052  -geometry 80x24+491+378   
    xterm -ls -sl 384   -geometry 80x48+573+246   
    emacs -i -w =80x56+1-1   -geometry 80x56+1+147   
    
    Note that xlayout accepts a display name and an output file as optional parameter:
         xlayout [-display displayname] [outfilename]
    
    Last Update: 1/12/94 JGW