twm(1X)
NAME
twm − X Window System terminal-based window manager
SYNTAX
twm [ options ] [ command ]
DESCRIPTION
The twm command provides a terminal-based window manager that lets you perform most window manager functions without mouse intervention. You can create an entirely mouse-free environment by binding specific keys to twm functions with keycomp(.). In addition, the twm command is useful for positioning windows from your .login or .profile file.
You can specify commands on the command line or through stdin by creating twm scripts in other files. Specified commands affect the current window (the window that contains the mouse pointer).
OPTIONS
−w geometrySpecifies that the command invoked affects the window that contains the specified coordinates. The geometry argument has the format =xy.
xSpecifies the x screen coordinate (pixel value).
ySpecifies the y screen coordinate (pixel value).
The x and y coordinates, depending on which corner of the screen each is relative to, must be preceded by a plus (+) or a minus (−). For more information about the screen coordinate system, see X(.).
COMMANDS
If no commands are specified, twm takes its input from the standard input until the EOF character is pressed.
The commands that can be specified for twm are as follows.
b numSpecifies that the keyboard bell beep the specified number of times (between 0 and 3).
cd numSpecifies that the root window be circulated down the specified number of times.
cu numSpecifies that the root window be circulated up the specified number of times.
fwSpecifies that the keyboard input be focused on the current window.
frSpecifies that the keyboard input be focused on the root window.
iSpecifies that the current window be iconified or deiconified.
lSpecifies that the current window be lowered.
m geometrySpecifies that the current window be moved to the specified coordinates. The geometry argument has the format =xy. For more information about this argument, see OPTIONS.
ni geometrySpecifies that the current window be iconified to a position indicated by the specified coordinates. The geometry argument has the format =xy. For more information about this argument, see OPTIONS.
pda numSpecifies that the current window be pushed down the specified number of pixels.
pdr numSpecifies that the current window be pushed down the specified number of units. Each unit is 1/nth of the window size.
pla numSpecifies that the current window be pushed left the specified number of pixels.
plr numSpecifies that the current window be pushed left the specified number of units. Each unit is 1/nth of the window size.
pra numSpecifies that the current window be pushed right the specified number of pixels.
prr numSpecifies that the current window be pushed right the specified number of units. Each unit is 1/nth of the window size.
pua numSpecifies that the current window be pushed up the specified number of pixels.
pur numSpecifies that the current window be pushed up the specified number of units. Each unit is 1/nth of the window size.
rSpecifies that the current window be raised.
rfSpecifies that the root window be refreshed.
rs geometrySpecifies that the current window be resized to the specified dimensions. The geometry argument has the format =widthxlength.
widthSpecifies the width (in pixels) of the window.
lengthSpecifies the length (in pixels) of the window.
EXAMPLES
twm m =+0+0
This command specifies that twm move the current window to the upper left corner of the screen.
twm i
This command specifies that twm iconify the current window.
twm pua 10 pra 10
This command specifies that twm move the current window up ten pixels and right ten pixels.
twm -w =+0+0 i
This command specifies that twm iconify the window that is located in the upper left corner at the coordinates +0+0.