diff options
| author | Andrew <saintruler@gmail.com> | 2020-06-16 15:03:21 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-06-16 15:03:21 +0400 |
| commit | 44d72459d9d780c07d66173cb9441ad110391711 (patch) | |
| tree | e7433f0e4eca6a151febff5ebbf44a4d30752cce | |
| parent | 9e9de9906a4145eef20dc9cb81c3b5c47b40eeb0 (diff) | |
Added dracula color scheme patch
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | config.h | 56 |
2 files changed, 35 insertions, 23 deletions
@@ -5,4 +5,4 @@ Used [st-v0.8.2](https://st.suckless.org/) Installed patches: * [Alpha](https://st.suckless.org/patches/alpha/) for changing opacity of terminal. * [Scrollback](https://st.suckless.org/patches/scrollback/) for scrolling through output (Also installed Scrollback with mouse support). - +* [Dracula](http://st.suckless.org/patches/dracula/) color scheme @@ -88,37 +88,49 @@ float alpha = 0.95; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { - /* 8 normal colors */ - "#32302f", - "#cc241d", - "#98971a", - "#d79921", - "#458588", - "#b16286", - "#689d6a", - "#a89984", - - /* 8 bright colors */ - "#928374", - "#fb4934", - "#b8bb26", - "#fabd2f", - "#83a598", - "#d3869b", - "#8ec07c", - "#ebdbb2", + /* 8 normal colors */ + [0] = "#000000", /* black */ + [1] = "#ff5555", /* red */ + [2] = "#50fa7b", /* green */ + [3] = "#f1fa8c", /* yellow */ + [4] = "#bd93f9", /* blue */ + [5] = "#ff79c6", /* magenta */ + [6] = "#8be9fd", /* cyan */ + [7] = "#bbbbbb", /* white */ + + /* 8 bright colors */ + [8] = "#44475a", /* black */ + [9] = "#ff5555", /* red */ + [10] = "#50fa7b", /* green */ + [11] = "#f1fa8c", /* yellow */ + [12] = "#bd93f9", /* blue */ + [13] = "#ff79c6", /* magenta */ + [14] = "#8be9fd", /* cyan */ + [15] = "#ffffff", /* white */ + + /* special colors */ + [256] = "#282a36", /* background */ + [257] = "#f8f8f2", /* foreground */ }; + /* * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ -unsigned int defaultfg = 15; -unsigned int defaultbg = 0; -static unsigned int defaultcs = 15; +unsigned int defaultfg = 257; +unsigned int defaultbg = 256; +static unsigned int defaultcs = 257; static unsigned int defaultrcs = 257; /* + * Colors used, when the specific fg == defaultfg. So in reverse mode this + * will reverse too. Another logic would only make the simple feature too + * complex. + */ +unsigned int defaultitalic = 7; +unsigned int defaultunderline = 7; +/* * Default shape of cursor * 2: Block ("█") * 4: Underline ("_") |