summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMatt Hunter <m@lfurio.us>2026-01-17 23:02:28 -0500
committerMatt Hunter <m@lfurio.us>2026-01-17 23:14:26 -0500
commit4da63c93feab351ecc33d47a86c4ad06680d1ee3 (patch)
treed95dc9f4161ebf4f51b6adb01a62f94a79e71a7e /config.def.h
parent1f4592f644d618656e7b405361fe8d1e09b0c451 (diff)
downloaddwm-4da63c93feab351ecc33d47a86c4ad06680d1ee3.tar.gz
dwm-4da63c93feab351ecc33d47a86c4ad06680d1ee3.zip
patch: alpha
Allow dwm to have translucent bars, while keeping all the text on it opaque, just like the alpha patch for st. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 355ea67..3a88b1c 100644
--- a/config.def.h
+++ b/config.def.h
@@ -7,6 +7,8 @@ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "monospace:size=10";
+static unsigned int baralpha = 0xd0;
+static unsigned int borderalpha = OPAQUE;
static const char col_gray1[] = "#080808";
static const char col_gray2[] = "#222222";
static const char col_gray3[] = "#bbbbbb";