diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-03-14 20:46:31 +0100 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-03-14 20:46:31 +0100 |
| commit | 36e09242b3a48915e5a9b92e8ce2d84f16609378 (patch) | |
| tree | 54ac88c1f56dbd241edd888e691f573da460d04d /dmenu/config.h | |
| parent | feat: add shortcut for custom ADB screenshot script (diff) | |
| download | suckless-setup-36e09242b3a48915e5a9b92e8ce2d84f16609378.tar.gz | |
feat: add alpha patch
Diffstat (limited to '')
| -rw-r--r-- | dmenu/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dmenu/config.h b/dmenu/config.h index b910d62..761bb2d 100644 --- a/dmenu/config.h +++ b/dmenu/config.h @@ -2,6 +2,7 @@ /* Default settings; can be overriden by command line. */ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +static const unsigned int alpha = 0xbe; static int centered = 1; /* -c option; centers dmenu on screen */ static int min_width = 500; /* minimum width when centered */ /* -fn option overrides fonts[0]; default X11 font or font set */ @@ -14,6 +15,13 @@ static const char *colors[SchemeLast][2] = { [SchemeSel] = {"#ffffff", "#575e6e"}, [SchemeOut] = {"#ffffff", "#da5748"}, }; + +static const unsigned int alphas[SchemeLast][2] = { + [SchemeNorm] = { OPAQUE, alpha }, + [SchemeSel] = { OPAQUE, alpha }, + [SchemeOut] = { OPAQUE, alpha }, +}; + /* -l and -g options; controls number of lines and columns in grid if > 0 */ static unsigned int lines = 10; static unsigned int columns = 1; |
