dmenu

my build of dynamic menu
git clone git://git.kocotian.pl/dmenu.git
Log | Files | Refs | README | LICENSE

commit 09ee259a709a75e0e6cd633fcfd01a6d34ed01d3
parent 57c9b1c3c5c7ad946a9198693e508cbc90a877ae
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed, 30 Dec 2020 12:03:04 +0100

prompt theme

Diffstat:
Mconfig.def.h | 1+
Mdmenu.c | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -14,6 +14,7 @@ static const char *colors[SchemeLast][2] = { /* fg bg */ [SchemeNorm] = { "#aaaaaa", "#222222" }, [SchemeSel] = { "#ffffff", "#222222" }, + [SchemePrpt] = { "#ffffff", "#444444" }, [SchemeOut] = { "#000000", "#00ffff" }, }; /* -l and -g options; controls number of lines and columns in grid if > 0 */ diff --git a/dmenu.c b/dmenu.c @@ -28,7 +28,7 @@ #define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) /* enums */ -enum { SchemeNorm, SchemeSel, SchemeOut, SchemeLast }; /* color schemes */ +enum { SchemeNorm, SchemeSel, SchemeOut, SchemePrpt, SchemeLast }; /* color schemes */ struct item { char *text; @@ -141,7 +141,7 @@ drawmenu(void) drw_rect(drw, 0, 0, mw, mh, 1, 1); if (prompt && *prompt) { - drw_setscheme(drw, scheme[SchemeSel]); + drw_setscheme(drw, scheme[SchemePrpt]); x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0); } /* draw input field */