dmenu

git clone git://mattcarlson.org/repos/dmenu.git
Log | Files | Refs

config.h (1637B)


      1 // dmenu
      2 
      3 // topbar
      4 static int topbar = 1;
      5 
      6 // centered
      7 static int centered = 0;
      8 
      9 // min width when centered
     10 static int min_width = 500;
     11 
     12 // colored prompt
     13 static int colorprompt = 1;
     14 
     15 // font
     16 static char font[] = "monospace:size=10";
     17 static const char *fonts[] = {
     18 	font,
     19 	"Noto Color Emoji:style=Regular:size=16",
     20 };
     21 
     22 // alpha
     23 static const unsigned int alpha = 0xff;
     24 
     25 // prompt
     26 static char *prompt = NULL;
     27 
     28 // colors
     29 static char normfgcolor[] = "#bbbbbb";
     30 static char normbgcolor[] = "#222222";
     31 static char selfgcolor[]  = "#eeeeee";
     32 static char selbgcolor[]  = "#005577";
     33 
     34 // color array
     35 static char *colors[SchemeLast][2] = {
     36 	//               fg           bg
     37 	[SchemeNorm] = { normfgcolor, normbgcolor },
     38 	[SchemeSel]  = { selfgcolor,  selbgcolor  },
     39 	[SchemeOut]  = { "#000000",   "#00ffff" },
     40 };
     41 
     42 // alphas
     43 static const unsigned int alphas[SchemeLast][2] = {
     44     [SchemeNorm] = { OPAQUE, alpha },
     45     [SchemeSel] = { OPAQUE, alpha },
     46     [SchemeOut] = { OPAQUE, alpha },
     47 };
     48 
     49 // lines for vertical dmenu
     50 static unsigned int lines = 0;
     51 
     52 // chars not considered part of word
     53 static const char worddelimiters[] = " ";
     54 
     55 // border width
     56 static unsigned int border_width = 5;
     57 
     58 // xresources
     59 ResourcePref resources[] = {
     60 	{ "font",         STRING,  &font         },
     61 	{ "normfgcolor",  STRING,  &normfgcolor  },
     62 	{ "normbgcolor",  STRING,  &normbgcolor  },
     63 	{ "selfgcolor",   STRING,  &selfgcolor   },
     64 	{ "selbgcolor",   STRING,  &selbgcolor   },
     65 	{ "prompt",       STRING,  &prompt       },
     66     { "min_width",    INTEGER, &min_width    },
     67     { "colorprompt",  INTEGER, &colorprompt  },
     68     { "border_width", INTEGER, &border_width },
     69 };