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

Loading…
Cancel
Save