Window Placement

Now that you have started your Unix system and your environment has been initialized, you may want to specify specific window placement. You saw this in our original sample .xinitrc script:

#!/bin/sh
xrdb -load $HOME/.X11defaults
xscreensaver -timeout 10 &
xterm -geometry 80x30+10+10 &

You can set your window placement with the -geometry (-g) switch. Using -geometry is not difficult, as you can see from our example. Don't let the numbers scare you—they are nothing but settings. Once you know the command, the switch, and the settings, you can take a program like xterm and specify the size and placement of any window. The geometry of a window consists of its dimensions and its position on the screen. In our example, the geometry ...

Get SAMS Teach Yourself Unix in 10 Minutes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.