config.h (2129B)
1 /* See LICENSE file for copyright and license details. */ 2 /* Default settings; can be overriden by command line. */ 3 4 static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ 5 static int centered = 1; /* -c option; centers dmenu on screen */ 6 static int min_width = 600; /* minimum width when centered */ 7 /* -fn option overrides fonts[0]; default X11 font or font set */ 8 static char font[] = "terminus:size=20:style=Bold"; 9 static const char *fonts[] = { 10 font 11 }; 12 static char *prompt = NULL; /* -p option; prompt to the left of input field */ 13 static char normfgcolor[] = "#bcbcbc"; 14 static char normbgcolor[] = "#000000"; 15 static char selfgcolor[] = "#000000"; 16 static char selbgcolor[] = "#bcbcbc"; 17 static char bordercolor[] = "#642b2b"; 18 static char *colors[SchemeLast][2] = { 19 /* fg bg */ 20 [SchemeNorm] = { normfgcolor, normbgcolor }, 21 [SchemeSel] = { selfgcolor, selbgcolor }, 22 [SchemeOut] = { bordercolor, "#00ffff" }, 23 }; 24 25 static unsigned int alphas[SchemeLast][2] = { 26 [SchemeNorm] = { OPAQUE, 255 }, 27 [SchemeSel] = { OPAQUE, 255 }, 28 [SchemeOut] = { OPAQUE, 255 }, 29 }; 30 31 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ 32 static int lines = 15; 33 34 /* 35 * Characters not considered part of a word while deleting words 36 * for example: " /?\"&[]" 37 */ 38 static const char worddelimiters[] = " "; 39 40 /* Size of the window border */ 41 static unsigned int border_width = 3; 42 43 /* 44 * Xresources preferences to load at startup 45 */ 46 ResourcePref resources[] = { 47 { "font", STRING, &font }, 48 { "normfgcolor", STRING, &normfgcolor }, 49 { "normbgcolor", STRING, &normbgcolor }, 50 { "selfgcolor", STRING, &selfgcolor }, 51 { "selbgcolor", STRING, &selbgcolor }, 52 { "bordercolor", STRING, &bordercolor }, 53 { "prompt", STRING, &prompt }, 54 { "alphanorm", INTEGER, &alphas[SchemeNorm][1] }, 55 { "alphasel", INTEGER, &alphas[SchemeSel][1] }, 56 { "alphaout", INTEGER, &alphas[SchemeOut][1] }, 57 { "lines", INTEGER, &lines }, 58 };