dmenu

My dmenu build
git clone https://git.regexghost.com/dmenu.git
Log | Files | Refs | README | LICENSE

config.def.h (2175B)


      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 horizpadbar = 2;                 /* horizontal padding */
      6 static int vertpadbar = 0;                  /* vertical padding */
      7 static int centered = 1;                    /* -c option; centers dmenu on screen */
      8 static int fuzzy  = 1;                      /* -F  option; if 0, dmenu doesn't use fuzzy matching */
      9 static int min_width = 500;                    /* minimum width when centered */
     10 static const float menu_height_ratio = 4.0f;  /* This is the ratio used in the original calculation */
     11 /* -fn option overrides fonts[0]; default X11 font or font set */
     12 static const char *fonts[] = {
     13 	"monospace:size=10"
     14 };
     15 static const char *prompt      = NULL;      /* -p  option; prompt to the left of input field */
     16 static const char *colors[SchemeLast][2] = {
     17 	/*     fg         bg       */
     18 	[SchemeNorm] = { "#bbbbbb", "#222222" },
     19 	[SchemeSel] = { "#eeeeee", "#005577" },
     20 	[SchemeSelHighlight] = { "#ffc978", "#005577" },
     21 	[SchemeNormHighlight] = { "#ffc978", "#222222" },
     22 	[SchemeOut] = { "#000000", "#00ffff" },
     23 	[SchemeCaret] = { "#eeeeee", "#222222" },
     24 	[SchemeCursor] = { "#222222", "#bbbbbb"},
     25 	[SchemePrompt] = { "#444444", "#222222" },
     26 	[SchemeBorder] = { "#444444", "#222222" },
     27 };
     28 /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
     29 static unsigned int lines      = 0;
     30 
     31 /*
     32  * Characters not considered part of a word while deleting words
     33  * for example: " /?\"&[]"
     34  */
     35 static const char worddelimiters[] = " ";
     36 
     37 /*
     38  * -vi option; if nonzero, vi mode is always enabled and can be
     39  * accessed with the global_esc keysym + mod mask
     40  */
     41 static unsigned int vi_mode = 1;
     42 static unsigned int start_mode = 0;			/* mode to use when -vi is passed. 0 = insert mode, 1 = normal mode */
     43 static Key global_esc = { XK_n, Mod1Mask };	/* escape key when vi mode is not enabled explicitly */
     44 static Key quit_keys[] = {
     45 	/* keysym	modifier */
     46 	{ XK_q,		0 }
     47 };
     48 
     49 /* Size of the window border */
     50 static unsigned int border_width = 2;