dmenu

customized build of dmenu, the dynamic menu for X
git clone git://src.adamsgaard.dk/dmenu
Log | Files | Refs | README | LICENSE

commit 485d0c40c2502089b55dce0aa0769c4f61ee2f2c
parent db6093f6ec1bb884f7540f2512935b5254750b30
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 26 Sep 2019 10:30:29 +0200

Add customization

Diffstat:
Aconfig.h | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/config.h b/config.h @@ -0,0 +1,23 @@ +/* See LICENSE file for copyright and license details. */ +/* Default settings; can be overriden by command line. */ + +static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +/* -fn option overrides fonts[0]; default X11 font or font set */ +static const char *fonts[] = { + "PragmataPro:size=10" +}; +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#c5c8c6", "#1d1f21" }, + [SchemeSel] = { "#1d1f21", "#c5c8c6" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; +/* -l option; if nonzero, dmenu uses vertical list with given number of lines */ +static unsigned int lines = 0; + +/* + * Characters not considered part of a word while deleting words + * for example: " /?\"&[]" + */ +static const char worddelimiters[] = " ";