aboutsummaryrefslogtreecommitdiff
path: root/dmenu/config.def.h
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-03-14 20:46:31 +0100
committerpml68 <tutorialmester@gmail.com>2024-03-14 20:46:31 +0100
commit36e09242b3a48915e5a9b92e8ce2d84f16609378 (patch)
tree54ac88c1f56dbd241edd888e691f573da460d04d /dmenu/config.def.h
parentfeat: add shortcut for custom ADB screenshot script (diff)
downloadsuckless-setup-36e09242b3a48915e5a9b92e8ce2d84f16609378.tar.gz
feat: add alpha patch
Diffstat (limited to 'dmenu/config.def.h')
-rw-r--r--dmenu/config.def.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dmenu/config.def.h b/dmenu/config.def.h
index b910d62..761bb2d 100644
--- a/dmenu/config.def.h
+++ b/dmenu/config.def.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;