dmenu

My dmenu build
git clone https://git.regexghost.com/dmenu.git
Log | Files | Refs | README | LICENSE

commit 64b96758a984da9140231255433aed7802ba7890
parent a5428ede8048f9c04e0fdfbf5799637d6f9fc2e6
Author: regexghost <regexghost@protonmail.com>
Date:   Mon, 11 May 2026 21:04:49 +0100

added -bb to control border colour, and enabled border

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

diff --git a/config.def.h b/config.def.h @@ -23,6 +23,7 @@ static const char *colors[SchemeLast][2] = { [SchemeCaret] = { "#eeeeee", "#222222" }, [SchemeCursor] = { "#222222", "#bbbbbb"}, [SchemePrompt] = { "#444444", "#222222" }, + [SchemeBorder] = { "#444444", "#222222" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; @@ -46,4 +47,4 @@ static Key quit_keys[] = { }; /* Size of the window border */ -static unsigned int border_width = 0; +static unsigned int border_width = 2; diff --git a/dmenu.c b/dmenu.c @@ -27,7 +27,7 @@ /* enums */ enum { SchemeNorm, SchemeSel, SchemeNormHighlight, SchemeSelHighlight, - SchemeOut, SchemeCaret, SchemeCursor, SchemePrompt, SchemeLast }; /* color schemes */ + SchemeOut, SchemeCaret, SchemeCursor, SchemePrompt, SchemeBorder, SchemeLast }; /* color schemes */ struct item { @@ -1071,7 +1071,7 @@ setup(void) CopyFromParent, CopyFromParent, CopyFromParent, CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); if (border_width) - XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel); + XSetWindowBorder(dpy, win, scheme[SchemeBorder][ColBg].pixel); XSetClassHint(dpy, win, &ch); /* input methods */ @@ -1170,6 +1170,8 @@ main(int argc, char *argv[]) colors[SchemePrompt][ColBg] = argv[++i]; else if (!strcmp(argv[i], "-pf")) /* prompt foreground color */ colors[SchemePrompt][ColFg] = argv[++i]; + else if (!strcmp(argv[i], "-bb")) /* border color */ + colors[SchemeBorder][ColBg] = argv[++i]; else if (!strcmp(argv[i], "-w")) /* embedding window id */ embed = argv[++i]; else if (!strcmp(argv[i], "-bw"))