X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=d041d6f8bbde15de16a4daf5ce24da8a1a645e83;hb=21b8820456efed37749f3d4df9cee009cde6599b;hp=8db1ddadfa328a88293fde2ec81ddef6f70d74e9;hpb=120e8401074254d39be916ad83bafda9ef25e6a9;p=dmenu.git diff --git a/config.def.h b/config.def.h index 8db1dda..d041d6f 100644 --- a/config.def.h +++ b/config.def.h @@ -2,17 +2,19 @@ /* Default settings; can be overriden by command line. */ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ +static int centered = 1; /* -c option; centers dmenu on screen */ +static int min_width = 500; /* minimum width when centered */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { "monospace:size=10" }; -static const char *prompt = NULL; /* -p option; prompt to the elft of input field */ -static const char *normbgcolor = "#222222"; /* -nb option; normal background */ -static const char *normfgcolor = "#bbbbbb"; /* -nf option; normal foreground */ -static const char *selbgcolor = "#005577"; /* -sb option; selected background */ -static const char *selfgcolor = "#eeeeee"; /* -sf option; selected foreground */ -static const char *outbgcolor = "#00ffff"; -static const char *outfgcolor = "#000000"; +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#eeeeee", "#005577" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0;