dmenu

Mahdi's build of dmenu
git clone git://mahdi.pw/dmenu.git
Log | Files | Refs | README | LICENSE

config.h (2142B)


      1 /* See LICENSE file for copyright and license details. */
      2 static char font[] = "monospace:size=10";   /* -fn option overrides fonts[0]; default font */
      3 static const char *fonts[] = {
      4 	font,
      5 	"Vazir:size=10",
      6 	"emoji:size=10",
      7 };
      8 
      9 static int topbar 		= 1;	/* -b  option; if 0, dmenu appears at bottom */
     10 static unsigned int border_width= 2;	/* -bw option; size of the window border */
     11 static char *prompt      	= NULL;	/* -p  option; prompt to the left of input field */
     12 static unsigned int preselected = 0;	/* -n option; preselected item starting from 0 */
     13 static unsigned int lines      	= 0;	/* -l option; if nonzero dmenu draws vertical list */
     14 static const unsigned int alpha = 0xf0;
     15 
     16 /*
     17  * Characters not considered part of a word while deleting words
     18  * for example: " /?\"&[]"
     19  */
     20 static const char worddelimiters[] = " ";
     21 
     22 static char normfgcolor[] = "#ECEFF4";
     23 static char normbgcolor[] = "#3B4252";
     24 static char normhlcolor[] = "#EBCB8B";
     25 static char selfgcolor[]  = "#EBCB8B";
     26 static char selbgcolor[]  = "#4C566A";
     27 static char selhlcolor[]  = "#E5E9F0";
     28 static char *colors[SchemeLast][2] = {
     29 	/*     fg         bg       */
     30 	[SchemeNorm] 		= { normfgcolor, normbgcolor },
     31 	[SchemeSel]  		= { selfgcolor,  selbgcolor  },
     32 	[SchemeNormHighlight] 	= { normhlcolor, normbgcolor },
     33 	[SchemeSelHighlight] 	= { selhlcolor,	 selbgcolor },
     34 	[SchemeOut]  		= { "#000000",   "#00ffff" },
     35 	[SchemeOutHighlight]  	= { normhlcolor, "#00ffff" },
     36 };
     37 
     38 static const unsigned int alphas[SchemeLast][2] = {
     39 	[SchemeNorm]		= { OPAQUE, alpha },
     40 	[SchemeSel] 		= { OPAQUE, alpha },
     41 	[SchemeOut] 		= { OPAQUE, alpha },
     42 	[SchemeNormHighlight] 	= { OPAQUE, alpha },
     43 	[SchemeSelHighlight] 	= { OPAQUE, alpha },
     44 	[SchemeOutHighlight] 	= { OPAQUE, alpha },
     45 };
     46 
     47 /*
     48  * Xresources preferences to load at startup
     49  */
     50 ResourcePref resources[] = {
     51 	{ "font",        STRING, &font },
     52 	{ "color7",      STRING, &normfgcolor },
     53 	{ "color0",      STRING, &normbgcolor },
     54 	{ "color1",  	 STRING, &normhlcolor },
     55 	{ "color0",      STRING, &selfgcolor },
     56 	{ "color7",  	 STRING, &selbgcolor },
     57 	{ "color1",  	 STRING, &selhlcolor },
     58 	{ "prompt",      STRING, &prompt },
     59 };
     60