sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1243B)


      1 Xresources
      2 ==========
      3 
      4 Description
      5 -----------
      6 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.
      7 
      8 The -20210314 patch adds an example on how you could set a custom font.
      9 
     10 Settings in config.h
     11 --------------------
     12 In `resources` struct is written the name, the type, and the address of the setting.
     13 
     14 	 Name                    Type                 Address
     15 	--------------------------------------------------------
     16 	 "nmaster"               INTEGER              &nmaster
     17 	 "mfact"                 FLOAT                &mfact
     18 	 "color1"                STRING               &color1
     19 
     20 In Xresources file setting names shoud be prefixed with "dwm."
     21 
     22 	dwm.nmaster:
     23 	dwm.mfact:
     24 	dwm.color1:
     25 
     26 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.
     27 
     28 Download
     29 --------
     30 * [dwm-xresources-6.2.diff](dwm-xresources-6.2.diff) (11/06/2020)
     31 * [dwm-xresources-20210314.diff](dwm-xresources-20210314.diff) (14/03/2021)
     32 * [dwm-xresources-20210827-138b405.diff](dwm-xresources-20210827-138b405.diff)
     33 
     34 
     35 Author
     36 ------
     37 * MLquest8 (miskuzius at gmail.com)