sites

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

index.md (1108B)


      1 vtcolors
      2 ========
      3 
      4 Description
      5 -----------
      6 This patch adds the ability for dwm to read colors from the linux virtual 
      7 console: /sys/module/vt/parameters/default_{red,grn,blu}. In this way the 
      8 colors you use in your regular tty is "mirrored" to dwm.
      9 
     10 Color mappings (16 colors) are handled in config.h using color_ptrs:
     11 
     12     static const int color_ptrs[][3]    = {
     13         /*                              fg         bg         border    */
     14         [SchemeNorm]                = { -1,        -1,        5 },
     15         [SchemeSel]                 = { -1,        -1,        11 },
     16         [SchemeTagsNorm]            = { 2,         0,         0 },
     17         [SchemeTagsSel]             = { 6,         5,         5 },
     18         [SchemeTitleNorm]           = { 6,         -1,        -1 },
     19         [SchemeTitleSel]            = { 6,         -1,        -1 },
     20         [SchemeStatus]              = { 2,         0,         0 },
     21     };
     22 
     23 Extra color specifications for tags, title and status are also added.
     24 
     25 Download
     26 --------
     27 * [dwm-vtcolors-6.2.diff](dwm-vtcolors-6.2.diff)
     28 
     29 Authors
     30 -------
     31 * Chris Noxz - <chris@noxz.tech>