O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required