dmenu

fork of dmenu
git clone git://popovic.xyz/dmenu.git
Log | Files | Refs | README | LICENSE

config.def.h.rej (1759B)


      1 --- config.def.h	2021-04-16 06:30:47.713924755 +0300
      2 +++ config.def.h	2021-04-16 06:34:14.956933252 +0300
      3 @@ -2,16 +2,25 @@
      4  /* Default settings; can be overriden by command line. */
      5 
      6  static int topbar = 1;                      /* -b  option; if 0, dmenu appears at bottom     */
      7 +
      8  /* -fn option overrides fonts[0]; default X11 font or font set */
      9 +static char font[] = "monospace:size=10";
     10  static const char *fonts[] = {
     11 -	"monospace:size=10"
     12 +	font,
     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 +
     18 +static char *prompt      = NULL;      /* -p  option; prompt to the left of input field */
     19 +
     20 +static char normfgcolor[] = "#bbbbbb";
     21 +static char normbgcolor[] = "#222222";
     22 +static char selfgcolor[]  = "#eeeeee";
     23 +static char selbgcolor[]  = "#005577";
     24 +static char *colors[SchemeLast][2] = {
     25  	/*     fg         bg       */
     26 -	[SchemeNorm] = { "#bbbbbb", "#222222" },
     27 -	[SchemeSel] = { "#eeeeee", "#005577" },
     28 -	[SchemeOut] = { "#000000", "#00ffff" },
     29 +	[SchemeNorm] = { normfgcolor, normbgcolor },
     30 +	[SchemeSel]  = { selfgcolor,  selbgcolor  },
     31 +	[SchemeOut]  = { "#000000",   "#00ffff" },
     32  };
     33  /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
     34  static unsigned int lines      = 0;
     35 @@ -21,3 +30,15 @@ static unsigned int lines      = 0;
     36   * for example: " /?\"&[]"
     37 +
     38 +/*
     39 + * Xresources preferences to load at startup
     40 + */
     41 +ResourcePref resources[] = {
     42 +	{ "font",        STRING, &font },
     43 +	{ "normfgcolor", STRING, &normfgcolor },
     44 +	{ "normbgcolor", STRING, &normbgcolor },
     45 +	{ "selfgcolor",  STRING, &selfgcolor },
     46 +	{ "selbgcolor",  STRING, &selbgcolor },
     47 +	{ "prompt",      STRING, &prompt },
     48 +};