Xresources

Description

This patch allows to handle settings from Xresources. It differs from xrdb patch in that it can handle any kind of setting as opposed to only color settings.

Settings in config.h

In resources struct is written the name, the type, and the address of the setting.

 Name                    Type                 Address
--------------------------------------------------------
 "nmaster"               INTEGER              &nmaster
 "mfact"                 FLOAT                &mfact
 "color1"                STRING               &color1

In Xresources file setting names shoud be prefixed with "dwm."

dwm.nmaster:
dwm.mfact:
dwm.color1:

This patch is a port of the st patch of the same name, it also borrows some code from dwm's xrdb patch, so a thank is in order for the authors of those patches.

Download

Author