summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2020-06-22 00:55:33 -0400
committerMalfurious <m@lfurio.us>2023-06-03 21:47:40 -0400
commitfc63e62e14aa5ffe340e13e339c597686a82adcd (patch)
treed60cf98584a8051711487be9c631e4e59fa577fc /config.def.h
parent3ad92c4639310132474143d355d75bd915f21eb4 (diff)
downloaddwm-fc63e62e14aa5ffe340e13e339c597686a82adcd.tar.gz
dwm-fc63e62e14aa5ffe340e13e339c597686a82adcd.zip
patch: alpha
Allow dwm to have translucent bars, while keeping all the text on it opaque, just like the alpha-patch for st. Fix transparent borders ----------------------- By default dwm might make windows' borders transparent when using composit window manager (e.g. xcompmgr, picom). Alpha patch allows to make borders opaque. If all you want is to make borders opaque, you don't care about statusbar opacity and/or have problems applying alpha patch, then you might use fixborders patch instead.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index d73818d..9c6dc83 100644
--- a/config.def.h
+++ b/config.def.h
@@ -12,11 +12,18 @@ static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb";
static const char col_gray4[] = "#eeeeee";
static const char col_cyan[] = "#005577";
+static const unsigned int baralpha = 0xd0;
+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 },
};
+static const unsigned int alphas[][3] = {
+ /* fg bg border */
+ [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
+ [SchemeSel] = { OPAQUE, baralpha, borderalpha },
+};
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" };