From 93d1cdff1805dc204cb2f4f354614095b0c0022d Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Fri, 4 Dec 2020 00:09:50 -0800 Subject: [PATCH] Update colors-wal-st.h This makes it easier to patch directly into st. Based on the new defaults. --- pywal/templates/colors-wal-st.h | 64 +++++++++++++++++---------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/pywal/templates/colors-wal-st.h b/pywal/templates/colors-wal-st.h index fcf85388..7b185c02 100644 --- a/pywal/templates/colors-wal-st.h +++ b/pywal/templates/colors-wal-st.h @@ -1,34 +1,38 @@ -const char *colorname[] = {{ +static const char *colorname[] = { + /* 8 normal colors */ + "{color0}", + "{color1}", + "{color2}", + "{color3}", + "{color4}", + "{color5}", + "{color6}", + "{color7}", - /* 8 normal colors */ - [0] = "{color0}", /* black */ - [1] = "{color1}", /* red */ - [2] = "{color2}", /* green */ - [3] = "{color3}", /* yellow */ - [4] = "{color4}", /* blue */ - [5] = "{color5}", /* magenta */ - [6] = "{color6}", /* cyan */ - [7] = "{color7}", /* white */ + /* 8 bright colors */ + "{color8}", + "{color9}", + "{color10}", + "{color11}", + "{color12}", + "{color13}", + "{color14}", + "{color15}", - /* 8 bright colors */ - [8] = "{color8}", /* black */ - [9] = "{color9}", /* red */ - [10] = "{color10}", /* green */ - [11] = "{color11}", /* yellow */ - [12] = "{color12}", /* blue */ - [13] = "{color13}", /* magenta */ - [14] = "{color14}", /* cyan */ - [15] = "{color15}", /* white */ + [255] = 0, - /* special colors */ - [256] = "{background}", /* background */ - [257] = "{foreground}", /* foreground */ - [258] = "{cursor}", /* cursor */ -}}; + /* more colors can be added after 255 to use with DefaultXX */ + "{background}", + "{foreground}", + "{cursor}", +}; -/* Default colors (colorname index) - * foreground, background, cursor */ - unsigned int defaultbg = 0; - unsigned int defaultfg = 257; - unsigned int defaultcs = 258; - unsigned int defaultrcs= 258; + +/* + * Default colors (colorname index) + * foreground, background, cursor, reverse cursor + */ +unsigned int defaultfg = 257; +unsigned int defaultbg = 256; +static unsigned int defaultcs = 258; +static unsigned int defaultrcs = 258;