diff options
author | Malfurious <m@lfurio.us> | 2020-06-22 00:55:33 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-03-05 20:21:09 -0500 |
commit | 1533625373f1404709b8562d008008adc5d007c8 (patch) | |
tree | 07f1d51f3e9d8190a512c2bca9bea5748bb1681d /config.def.h | |
parent | 48b85889b34d4b7198e305e36a0f6abac2444e61 (diff) | |
download | dwm-1533625373f1404709b8562d008008adc5d007c8.tar.gz dwm-1533625373f1404709b8562d008008adc5d007c8.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.h | 7 |
1 files changed, 7 insertions, 0 deletions
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" }; |