Skip to Content
X Window System User's Guide for X11 R3 and R4 of the X Window System
book

X Window System User's Guide for X11 R3 and R4 of the X Window System

by Valerie Quercia, Tim O'Reilly
May 1990
Beginner
723 pages
17h 35m
English
O'Reilly Media, Inc.
Content preview from X Window System User's Guide for X11 R3 and R4 of the X Window System

10

Customizing the twm Window Manager

This chapter describes the syntax of the .twmrc startup file that can be used to customize the operation of the twm window manager. It describes how to bind functions to keys, and how to define your own twm menus. An alternative .twmrc file is included.

In This Chapter:

Setting .twmrc Variables

Button/Key Bindings

Pointer Buttons

Keys

Context

Function Names

Action

Defining Menus

Submenus

Executing System Commands from a Menu

Color Menus

A Complete Revamp of twm

10

Customizing the twm Window Manager

Difficult as it may be to believe, every function of the window manager described in Chapter 2 and Chapter 3 of this guide can be modified by the user. The function itself will remain the same (for example, you will still resize a window by moving the pointer over the border you want to change, and stretching or shrinking the window to the size you want), but the keys and/or menu items used to invoke the function may be completely different. The flexibility of twm allows you to redesign the Twm menu by reordering, adding and removing items, and changing key/button combinations; and to create entirely new menus. The operation of the window manager, as distributed, is controlled by a text file called system.twmrc in the directory /usr/lib/X11/twm. This file has three parts:

•  A variables section, which contains various settings, such as the font with which menus should be displayed, the volume of the keyboard bell, and so on.

•  A key bindings ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

X Window System User's Guide, Vol 3 (The Definitive Guides to the X Window System)

X Window System User's Guide, Vol 3 (The Definitive Guides to the X Window System)

Valerie Quercia, Tim O'Reilly

Publisher Resources

ISBN: 9780937175149