Xrdb

From wikinotes
Revision as of 18:40, 12 March 2022 by Will (talk | contribs) (Created page with "Loads/Merges Xresources files, which customizes properties of the X root window. = Documentation = <blockquote> {| class="wikitable" |- | <code>man x</code> || https://man.ar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Loads/Merges Xresources files, which customizes properties of the X root window.

Documentation

man x https://man.archlinux.org/man/extra/xorg-docs/X.7.en
man xrdb https://man.archlinux.org/man/extra/xorg-xrdb/xrdb.1.en

Usage

xrdb -query -all           # list all current settings
xrdb -merge ~/.Xresources  # merge Xresources overtop of current

Xresources/Xdefaults syntax

Variables

#define foo #111222

Xterm.foreground: foo

Sourcing Files

You can split up your Xresources into multiple files.

#include "~/.Xresources/foo"
#include "~/.Xresources/bar"