relocate colours

This commit is contained in:
Maddie H 2022-05-13 20:19:44 +01:00
parent 5326af4a3d
commit 95c4e5af97
2 changed files with 35 additions and 2 deletions

34
colours.h Normal file
View File

@ -0,0 +1,34 @@
const char *colorname[] = {
/* 8 normal colors */
[0] = "#111313", /* black */
[1] = "#AFA98E", /* red */
[2] = "#8FA9A9", /* green */
[3] = "#E29F8D", /* yellow */
[4] = "#ABCABB", /* blue */
[5] = "#E0D7B2", /* magenta */
[6] = "#EBDBB2", /* cyan */
[7] = "#e1e6d8", /* white */
/* 8 bright colors */
[8] = "#9da197", /* black */
[9] = "#AFA98E", /* red */
[10] = "#8FA9A9", /* green */
[11] = "#E29F8D", /* yellow */
[12] = "#ABCABB", /* blue */
[13] = "#E0D7B2", /* magenta */
[14] = "#EBDBB2", /* cyan */
[15] = "#e1e6d8", /* white */
/* special colors */
[256] = "#111313", /* background */
[257] = "#e1e6d8", /* foreground */
[258] = "#e1e6d8", /* cursor */
};
/* Default colors (colorname index)
* foreground, background, cursor */
unsigned int defaultbg = 0;
unsigned int defaultfg = 257;
unsigned int defaultcs = 258;
unsigned int defaultrcs= 258;

View File

@ -111,8 +111,7 @@ char *termname = "st-256color";
unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */
/* colours from cols */
#include "/home/spy/.config/cols/st.h"
#include "colours.h"
/*
* Default shape of cursor