diff --git a/colors.h b/colors.h new file mode 100644 index 0000000..25d05b7 --- /dev/null +++ b/colors.h @@ -0,0 +1,28 @@ +/* Terminal colors (16 first used in escape sequence) */ +static const char *colorname[] = { + /* 8 normal colors */ + "#161510", + "#a32810", + "#727a18", + "#a37720", + "#3d6266", + "#7a4955", + "#557a55", + "#8e8463", + + /* 8 bright colors */ + "#4c4635", + "#cc3214", + "#8e991e", + "#cc9528", + "#4c7b7f", + "#995b6b", + "#6b996b", + "#ccbc8e", + + [255] = 0, + + /* more colors can be added after 255 to use with DefaultXX */ + "#cccccc", + "#555555", +}; diff --git a/config.h b/config.h index 029d977..b14cde7 100644 --- a/config.h +++ b/config.h @@ -91,35 +91,7 @@ char *termname = "st-256color"; */ unsigned int tabspaces = 8; -/* Terminal colors (16 first used in escape sequence) */ -static const char *colorname[] = { - /* 8 normal colors */ - "#161510", - "#a32810", - "#727a18", - "#a37720", - "#3d6266", - "#7a4955", - "#557a55", - "#8e8463", - - /* 8 bright colors */ - "#4c4635", - "#cc3214", - "#8e991e", - "#cc9528", - "#4c7b7f", - "#995b6b", - "#6b996b", - "#ccbc8e", - - [255] = 0, - - /* more colors can be added after 255 to use with DefaultXX */ - "#cccccc", - "#555555", -}; - +#include /* * Default colors (colorname index)