1 /* See LICENSE file for copyright and license details. */
2 /* Default settings; can be overriden by command line. */
4 static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
5 static const unsigned int alpha = 0xf0;
6 static int centered = 0; /* -c option; centers dmenu on screen */
7 static int min_width = 500; /* minimum width when centered */
8 /* -fn option overrides fonts[0]; default X11 font or font set */
9 static const char *fonts[] = {
12 static const char *prompt = NULL; /* -p option; prompt to the left of input field */
13 static const char *colors[SchemeLast][2] = {
15 [SchemeNorm] = { "#bbbbbb", "#222222" },
16 [SchemeSel] = { "#eeeeee", "#005577" },
17 [SchemeOut] = { "#000000", "#00ffff" },
20 static const unsigned int alphas[SchemeLast][2] = {
21 [SchemeNorm] = { OPAQUE, alpha },
22 [SchemeSel] = { OPAQUE, alpha },
23 [SchemeOut] = { OPAQUE, alpha },
26 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
27 static unsigned int lines = 0;
30 * Characters not considered part of a word while deleting words
31 * for example: " /?\"&[]"
33 static const char worddelimiters[] = " ";