diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-25 13:29:52 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2021-12-25 13:29:52 -0500 |
| commit | 1eb83d40737d44c07ae5f61134f73d08e5150c9b (patch) | |
| tree | 295954aa5aa89cfbc94167b30d2e2c691333f9fe /config.def.h | |
| parent | 5784018c18d5af4e8fa1bca7975547fb02dda873 (diff) | |
| download | dwm-1eb83d40737d44c07ae5f61134f73d08e5150c9b.tar.gz | |
Applied status2d with xrdb patch
https://dwm.suckless.org/patches/status2d/
For color support in the status bar. Had to tweak the xrdb patch a
bit to make it work with the xresources patch already applied.
Currently had a bug where an unprintable character is shown at the
beginning of the status bar when a symbol is present.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 631874d..caac1a9 100644 --- a/config.def.h +++ b/config.def.h @@ -26,6 +26,40 @@ static char normfgcolor[] = "#bbbbbb"; static char selfgcolor[] = "#eeeeee"; static char selbordercolor[] = "#005577"; static char selbgcolor[] = "#005577"; +static char termcol0[] = "#000000"; /* black */ +static char termcol1[] = "#ff0000"; /* red */ +static char termcol2[] = "#33ff00"; /* green */ +static char termcol3[] = "#ff0099"; /* yellow */ +static char termcol4[] = "#0066ff"; /* blue */ +static char termcol5[] = "#cc00ff"; /* magenta */ +static char termcol6[] = "#00ffff"; /* cyan */ +static char termcol7[] = "#d0d0d0"; /* white */ +static char termcol8[] = "#808080"; /* black */ +static char termcol9[] = "#ff0000"; /* red */ +static char termcol10[] = "#33ff00"; /* green */ +static char termcol11[] = "#ff0099"; /* yellow */ +static char termcol12[] = "#0066ff"; /* blue */ +static char termcol13[] = "#cc00ff"; /* magenta */ +static char termcol14[] = "#00ffff"; /* cyan */ +static char termcol15[] = "#ffffff"; /* white */ +static char *termcolor[] = { + termcol0, + termcol1, + termcol2, + termcol3, + termcol4, + termcol5, + termcol6, + termcol7, + termcol8, + termcol9, + termcol10, + termcol11, + termcol12, + termcol13, + termcol14, + termcol15, +}; static char *colors[][3] = { /* fg bg border */ [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor }, @@ -132,6 +166,22 @@ ResourcePref resources[] = { { "nmaster", INTEGER, &nmaster }, { "resizehints", INTEGER, &resizehints }, { "mfact", FLOAT, &mfact }, + { "color0", STRING, &termcol0}, + { "color1", STRING, &termcol1}, + { "color2", STRING, &termcol2}, + { "color3", STRING, &termcol3}, + { "color4", STRING, &termcol4}, + { "color5", STRING, &termcol5}, + { "color6", STRING, &termcol6}, + { "color7", STRING, &termcol7}, + { "color8", STRING, &termcol8}, + { "color9", STRING, &termcol9}, + { "color10", STRING, &termcol10}, + { "color11", STRING, &termcol11}, + { "color12", STRING, &termcol12}, + { "color13", STRING, &termcol13}, + { "color14", STRING, &termcol14}, + { "color15", STRING, &termcol15}, }; |