fix: colornames in Xresources file

master
phga 4 years ago
parent 7e686a9c90
commit 690b668b13

@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "-*-Ttyp0-normal-normal-normal-*-17-*-*-*-c-70-iso10646-1";
static char *font = "-UNKN-Ttyp0-normal-normal-normal-*-17-*-*-*-m-*-iso10646-1";
static int borderpx = 8;
/*
@ -84,29 +84,29 @@ unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
/* 8 normal colors */
[0] = "#1d1f21", /* black */
[1] = "#cc6666", /* red */
[2] = "#b5bd68", /* green */
[3] = "#f0c674", /* yellow */
[4] = "#81a2be", /* blue */
[5] = "#b294bb", /* magenta */
[6] = "#8abeb7", /* cyan */
[7] = "#c5c8c6", /* white */
/* 8 bright colors */
[8] = "#969896", /* black */
[9] = "#cc6666", /* red */
[10] = "#b5bd68", /* green */
[11] = "#f0c674", /* yellow */
[12] = "#81a2be", /* blue */
[13] = "#b294bb", /* magenta */
[14] = "#8abeb7", /* cyan */
[15] = "#ffffff", /* white */
/* special colors */
[256] = "#1d1f21", /* background */
[257] = "#c5c8c6", /* foreground */
/* 8 normal colors */
[0] = "#1d1f21", /* black */
[1] = "#cc6666", /* red */
[2] = "#b5bd68", /* green */
[3] = "#f0c674", /* yellow */
[4] = "#81a2be", /* blue */
[5] = "#b294bb", /* magenta */
[6] = "#8abeb7", /* cyan */
[7] = "#c5c8c6", /* white */
/* 8 bright colors */
[8] = "#969896", /* black */
[9] = "#cc6666", /* red */
[10] = "#b5bd68", /* green */
[11] = "#f0c674", /* yellow */
[12] = "#81a2be", /* blue */
[13] = "#b294bb", /* magenta */
[14] = "#8abeb7", /* cyan */
[15] = "#ffffff", /* white */
/* special colors */
[256] = "#1d1f21", /* background */
[257] = "#c5c8c6", /* foreground */
};
/*
@ -166,36 +166,36 @@ static uint forcemousemod = ShiftMask;
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "font", STRING, &font },
{ "color0", STRING, &colorname[0] },
{ "color1", STRING, &colorname[1] },
{ "color2", STRING, &colorname[2] },
{ "color3", STRING, &colorname[3] },
{ "color4", STRING, &colorname[4] },
{ "color5", STRING, &colorname[5] },
{ "color6", STRING, &colorname[6] },
{ "color7", STRING, &colorname[7] },
{ "color8", STRING, &colorname[8] },
{ "color9", STRING, &colorname[9] },
{ "color10", STRING, &colorname[10] },
{ "color11", STRING, &colorname[11] },
{ "color12", STRING, &colorname[12] },
{ "color13", STRING, &colorname[13] },
{ "color14", STRING, &colorname[14] },
{ "color15", STRING, &colorname[15] },
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursorColor", STRING, &colorname[258] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
{ "xfps", INTEGER, &xfps },
{ "actionfps", INTEGER, &actionfps },
{ "blinktimeout", INTEGER, &blinktimeout },
{ "bellvolume", INTEGER, &bellvolume },
{ "tabspaces", INTEGER, &tabspaces },
{ "borderpx", INTEGER, &borderpx },
{ "cwscale", FLOAT, &cwscale },
{ "chscale", FLOAT, &chscale },
{ "font", STRING, &font },
{ "black", STRING, &colorname[0] },
{ "red", STRING, &colorname[1] },
{ "green", STRING, &colorname[2] },
{ "yellow", STRING, &colorname[3] },
{ "blue", STRING, &colorname[4] },
{ "magenta", STRING, &colorname[5] },
{ "cyan", STRING, &colorname[6] },
{ "white", STRING, &colorname[7] },
{ "b_black", STRING, &colorname[8] },
{ "b_red", STRING, &colorname[9] },
{ "b_green", STRING, &colorname[10] },
{ "b_yellow", STRING, &colorname[11] },
{ "b_blue", STRING, &colorname[12] },
{ "b_magenta", STRING, &colorname[13] },
{ "b_cyan", STRING, &colorname[14] },
{ "b_white", STRING, &colorname[15] },
{ "background", STRING, &colorname[256] },
{ "foreground", STRING, &colorname[257] },
{ "cursorColor", STRING, &colorname[258] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
{ "xfps", INTEGER, &xfps },
{ "actionfps", INTEGER, &actionfps },
{ "blinktimeout", INTEGER, &blinktimeout },
{ "bellvolume", INTEGER, &bellvolume },
{ "tabspaces", INTEGER, &tabspaces },
{ "borderpx", INTEGER, &borderpx },
{ "cwscale", FLOAT, &cwscale },
{ "chscale", FLOAT, &chscale },
};
/*

Loading…
Cancel
Save