dmenu

git clone git://mattcarlson.org/repos/dmenu.git
Log | Files | Refs

commit 80c9f86ff04acafdce7fd23ffa3c35c698d95190
parent 56e1a9c216aa098f70384bb7519487d2d1b95c66
Author: Matthew Carlson <matt@mcarlson.xyz>
Date:   Thu,  1 Jul 2021 21:54:32 +0000

lfw

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

diff --git a/config.h b/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 int colorprompt = 1; /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { "monospace:size=10" diff --git a/dmenu.c b/dmenu.c @@ -137,6 +137,7 @@ drawmenu(void) drw_rect(drw, 0, 0, mw, mh, 1, 1); if (prompt && *prompt) { + if (colorprompt) drw_setscheme(drw, scheme[SchemeSel]); x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0); } @@ -154,7 +155,7 @@ drawmenu(void) if (lines > 0) { /* draw vertical list */ for (item = curr; item != next; item = item->right) - drawitem(item, x, y += bh, mw - x); + drawitem(item, 0, y += bh, mw - x); } else if (matches) { /* draw horizontal list */ x += inputw;