From a5ca3d6484f90ab328a6e6f2b8a272c939ac07ac Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sun, 7 Apr 2024 23:28:10 +0200 Subject: alpha patch applied --- config.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index bdfd0d9..0e0aa57 100644 --- a/config.h +++ b/config.h @@ -11,15 +11,20 @@ static const double inactiveopacity = 0.85f; /* Window opacity when it's inact static Bool bUseOpacity = True; /* Starts with opacity on any unfocused windows */ static const char *fonts[] = { "Terminus:size=12" }; static const char dmenufont[] = "Terminus:size=12"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#eeeeee"; static const char col_cyan[] = "#1793d0"; +static const char col_white[] = "#ffffff"; +static const char col_black[] = "#000000"; +static const unsigned int baralpha = 0x70; +static const unsigned int borderalpha = OPAQUE; static const char *colors[][3] = { /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, + [SchemeNorm] = { col_cyan, col_black, col_black }, + [SchemeSel] = { col_cyan, col_black, col_cyan }, +}; +static const unsigned int alphas[][3] = { + /* fg bg border*/ + [SchemeNorm] = { OPAQUE, baralpha, borderalpha }, + [SchemeSel] = { OPAQUE, baralpha, borderalpha }, }; /* tagging */ @@ -48,7 +53,7 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ - { "[T]", tile }, /* first entry is default */ + { "", tile }, /* first entry is default */ { "[F]", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, }; @@ -69,7 +74,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_black, "-nf", col_cyan, "-sb", col_cyan, "-sf", col_black, NULL }; static const char *termcmd[] = { "st", NULL }; static const Key keys[] = { @@ -93,7 +98,7 @@ static const Key keys[] = { { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, + { MODKEY, XK_f, togglefullscr, {0} }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, { MODKEY, XK_period, focusmon, {.i = +1 } }, -- cgit v1.2.3