56 lines
2.0 KiB
C
56 lines
2.0 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 opacity = 1; /* -o option; if 0, then alpha is disabled */
|
|
static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */
|
|
/* -fn option overrides fonts[0]; default X11 font or font set */
|
|
static char font[] = "FiraCode Nerd Font 12";
|
|
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
|
|
|
|
static const unsigned int baralpha = OPAQUE;
|
|
static const unsigned int borderalpha = OPAQUE;
|
|
static const unsigned int alphas[][3] = {
|
|
/* fg bg border */
|
|
[SchemeNorm] = { OPAQUE, baralpha, borderalpha },
|
|
[SchemeSel] = { OPAQUE, baralpha, borderalpha },
|
|
[SchemeSelHighlight] = { OPAQUE, baralpha, borderalpha },
|
|
[SchemeNormHighlight] = { OPAQUE, baralpha, borderalpha },
|
|
};
|
|
|
|
#define NOCOLOR "#FF0000"
|
|
#define COLOR0 "#15161E"
|
|
#define COLOR1 "#f7768e"
|
|
#define COLOR2 "#9ece6a"
|
|
#define COLOR3 "#e0af68"
|
|
#define COLOR4 "#7aa2f7"
|
|
#define COLOR5 "#bb9af7"
|
|
#define COLOR6 "#7dcfff"
|
|
#define COLOR7 "#a9b1d6"
|
|
#define COLOR8 "#414868"
|
|
#define COLOR9 "#f7768e"
|
|
#define COLOR10 "#9ece6a"
|
|
#define COLOR11 "#e0af68"
|
|
#define COLOR12 "#7aa2f7"
|
|
#define COLOR13 "#bb9af7"
|
|
#define COLOR14 "#7dcfff"
|
|
#define COLOR15 "#c0caf5"
|
|
|
|
static
|
|
char *colors[][2] = {
|
|
/* fg bg */
|
|
[SchemeNorm] = { COLOR7, COLOR0 },
|
|
[SchemeSel] = { COLOR0, COLOR4 },
|
|
[SchemeOut] = { NOCOLOR, NOCOLOR },
|
|
[SchemeNormHighlight] = { COLOR11, COLOR0 },
|
|
[SchemeSelHighlight] = { COLOR0, COLOR4 },
|
|
};
|
|
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
|
static unsigned int lines = 0;
|
|
|
|
/*
|
|
* Characters not considered part of a word while deleting words
|
|
* for example: " /?\"&[]"
|
|
*/
|
|
static const char worddelimiters[] = " `'\"()[]{}=,";
|