From 1533625373f1404709b8562d008008adc5d007c8 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Mon, 22 Jun 2020 00:55:33 -0400 Subject: 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. --- config.def.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index ff2264e..4ac4099 100644 --- a/config.def.h +++ b/config.def.h @@ -12,11 +12,18 @@ static const char col_gray2[] = "#222222"; static const char col_gray3[] = "#bbbbbb"; static const char col_gray4[] = "#eeeeee"; static const char col_cyan[] = "#002a3b"; +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" }; -- cgit v1.2.3