Twm

From Alpine Linux
Revision as of 22:47, 14 January 2024 by Carbon-starlight (talk | contribs) (Created a page for twm window manager)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
A depiction of Alpine Linux interface with twm window manager
A depiction of Alpine Linux interface with twm window manager

twm (Tab Window Manager) is the standard window manager for the X Window System since version X11R4.

Installation

1. Run

# setup-xorg-base

2. Type

# cd

to go to home directory. In home directory create a file named ".xinitrc":

# vi .xinitrc

Or, if you prefer nano text editor

# nano .xinitrc

3. Write to file:

exec twm

Save the file.

4. Install twm

# apk add twm

You will also need xterm to open apps:

# apk add xterm

5. Start the X window manager

# startx

You will be greeted with a black screen. Hold left mouse button and select "XTerm". Type in a program name to launch it.

Keyboard layout

Your keyboard layout will be back to US default. If you use an alternative layout (e.g. Colemak), that might be a problem.

To switch to another layout first install setxkbmap:

# apk add setxkbmap

Then switch to another layout (example for colemak):

# setxkbmap us -variant colemak