Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Update colors-wal-st.h
Browse files Browse the repository at this point in the history
This makes it easier to patch directly into st. Based on the new defaults.
  • Loading branch information
JohnHolmesII committed Dec 4, 2020
1 parent 4997a49 commit 93d1cdf
Showing 1 changed file with 34 additions and 30 deletions.
64 changes: 34 additions & 30 deletions pywal/templates/colors-wal-st.h
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 93d1cdf

Please sign in to comment.