Add support for additional alpha when the term-window is not focused

This commit is contained in:
Moritz Biering
2021-05-05 21:16:25 +02:00
parent 7e6e779130
commit 69925ee23b
5 changed files with 36 additions and 13 deletions

View File

@@ -108,6 +108,7 @@ unsigned int tabspaces = 8;
/* bg opacity */
float alpha = 0.8;
float alphaUnfocus = 0.8;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
@@ -144,6 +145,7 @@ unsigned int defaultfg = 259;
unsigned int defaultbg = 258;
unsigned int defaultcs = 256;
unsigned int defaultrcs = 257;
unsigned int background = 258;
/*
* Default shape of cursor
@@ -217,6 +219,7 @@ ResourcePref resources[] = {
{ "cwscale", FLOAT, &cwscale },
{ "chscale", FLOAT, &chscale },
{ "alpha", FLOAT, &alpha },
{ "alphaUnfocus", FLOAT, &alphaUnfocus },
};
/*