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

9

Setting Resources

This chapter describes how to set resource variables that determine application features such as color, geometry, fonts, and so on. It describes the syntax of resource definition files such as .Xresources, as well as the operation of xrdb, a client that can be used to change resource definitions dynamically, and make resources available to clients running on other machines.

In This Chapter:

Resource Naming Syntax

Syntax of Toolkit Client Resources

Tight Bindings and Loose Bindings

Instances and Classes

Precedence Rules for Resource Specification

Some Common Resources

Event Translations

The Syntax of Event Translations

xterm Translations to Use xclipboard

How to Set Resources

A Sample Resources File

Specifying Resources from the Command Line

The -xrm Option

The -name Option

Setting Resources with xrdb

Querying the Resource Database

Loading New Values into the Resource Database

Saving Active Resource Definitions in a File

Removing Resource Definitions

Listing the Current Resources for a Client: appres

Other Sources of Resource Definition

9

Setting Resources

Virtually all X clients are customizable. You can specify how a client looks on the screen—its size and placement, its border and background color or pattern, whether or not the window has a scrollbar, and so on. Some applications even allow you to redefine the keystrokes or pointer actions used to control the application.

Traditional UNIX applications rely on command line options to allow users to customize ...

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