dmenu

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

commit 69e37a665a5699d43145f67ce45b169c132f3dd0
parent 75ea14f7e871f97916c8e2aea57b11832bbf4a85
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed, 30 Dec 2020 11:41:32 +0100

smaller font, -i flag for compatibility

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

diff --git a/config.def.h b/config.def.h @@ -5,7 +5,7 @@ static int topbar = 1; /* -b option; if 0, dmenu appears a static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=10" + "monospace:size=8" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { diff --git a/dmenu.c b/dmenu.c @@ -800,6 +800,8 @@ main(int argc, char *argv[]) fast = 1; else if (!strcmp(argv[i], "-F")) /* not fuzzy match */ fuzzy = 0; + else if (!strcmp(argv[i], "-i")); /* for scripts compatibility, insensitive + matching is default by patch */ else if (!strcmp(argv[i], "-s")) { /* case-sensitive item matching */ fstrncmp = strncmp; fstrstr = strstr;