52 lines
1.9 KiB
C
52 lines
1.9 KiB
C
/* See LICENSE file for copyright and license details. */
|
|
/* Default settings; can be overriden by command line. */
|
|
|
|
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
|
|
static int centered = 0; /* -c option; centers dmenu on screen */
|
|
static int colorprompt = 1; /* -p option; if 1, prompt uses SchemeSel, otherwise SchemeNorm */
|
|
static int min_width = 480; /* minimum width when centered */
|
|
static const unsigned int alpha = 0xD0;
|
|
|
|
/* -fn option overrides fonts[0]; default X11 font or font set */
|
|
static const char *fonts[] = {
|
|
"Terminus:size=9"
|
|
};
|
|
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
|
static const char *colors[SchemeLast][2] = {
|
|
/* fg bg */
|
|
[SchemeNorm] = { "#a7acc5", "#2d0827" },
|
|
[SchemeSel] = { "#f9f5e9", "#402c4e" },
|
|
[SchemeSelHighlight] = { "#d93352", "#402c4e" },
|
|
[SchemeNormHighlight] = { "#f15b94", "#2d0827" },
|
|
[SchemeOut] = { "#2d0827", "#c7acc5" },
|
|
};
|
|
|
|
static const unsigned int alphas[SchemeLast][2] = {
|
|
[SchemeNorm] = { OPAQUE, alpha },
|
|
[SchemeSel] = { OPAQUE, alpha },
|
|
[SchemeOut] = { OPAQUE, alpha },
|
|
[SchemeSelHighlight] = { OPAQUE, alpha },
|
|
[SchemeNormHighlight] = { OPAQUE, alpha},
|
|
};
|
|
|
|
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
|
static unsigned int lines = 0;
|
|
/* -h option; minimum height of a menu line */
|
|
static unsigned int lineheight = 20;
|
|
static unsigned int min_lineheight = 20;
|
|
|
|
/*
|
|
* Characters not considered part of a word while deleting words
|
|
* for example: " /?\"&[]"
|
|
*/
|
|
static const char worddelimiters[] = " /?\"&[]";
|
|
|
|
/* -n option; preselected item starting from 0 */
|
|
static unsigned int preselected = 0;
|
|
/* Size of the window border */
|
|
static unsigned int border_width = 0;
|
|
/* tsv-alt: reverse the order of tab separation.
|
|
* 0 = display<TAB>output. 1 = output<TAB>display
|
|
* can be reversed with -r as well */
|
|
static int revtab = 0;
|