index.md (1241B)
1 # Xresources 2 3 Runtime configuration using X resources. 4 5 ## Description 6 7 This patch adds X resources support to dwm. At startup, dwm reads the configured 8 X resources and applies them. 9 10 This patch also adds a hotkey (`Modkey` + `F5` by default) which reloads the 11 configured resources during runtime. 12 13 ## Configuration 14 15 The `resources` array contains list of settings to load from X resources: 16 17 /* X resources to update */ 18 static const XResPref resources[] = { 19 /* name type address */ 20 { "dwm.font", STRING, &fonts[0] }, 21 { "dwm.foreground", STRING, &colors[SchemeNorm][ColFg] }, 22 { "dwm.borderpx", INTEGER, &borderpx }, 23 { "dwm.mfact", FLOAT, &mfact }, 24 }; 25 26 Each entry contains the name of resource, the variable type, and the variable 27 address. 28 29 ## Download 30 31 - [dwm-xresources-6.2.diff](./dwm-xresources-6.2.diff) (11/06/2020) 32 - [dwm-xresources-20210314.diff](./dwm-xresources-20210314.diff) 33 - [dwm-xresources-20210827-138b405.diff](./dwm-xresources-20210827-138b405.diff) 34 - [dwm-xresources-20260524-44dbc68.diff](./dwm-xresources-20260524-44dbc68.diff) 35 36 ## Author 37 38 - MLquest8 (miskuzius at gmail.com) 39 - Justinas Grigas <dev@jstnas.com> (20260524)