about summary refs log tree commit diff
path: root/config.h
blob: 57cb0617d72a6f9b9c31a726f0dc702d45be895e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* 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 fuzzy = 1;                      /* -F  option; if 0, dmenu doesn't use fuzzy matching     */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
	"TX\\-02:size=10",
	"Noto Sans Display Nerd Font:size=10"
};

static char *name = "dmenu";   /* -n  option; */
static char *class = "Dmenu";  /* -c  option; */

static const char *prompt      = NULL;      /* -p  option; prompt to the left of input field */

static const char col_gray1[]       = "#222222";
static const char col_gray2[]       = "#444444";
static const char col_gray3[]       = "#bbbbbb";
static const char col_gray4[]       = "#eeeeee";
static const char col_cyan[]        = "#005577";
static const char col_black[]       = "#000000";
static const char col_aqua[]        = "#00ffff";

static const unsigned int baralpha = 0xd0;

static const char *colors[SchemeLast][2] = {
	/*                  fg          bg   */
	[SchemeNorm] = { col_gray3,  col_gray1},
	[SchemeSel]  = { col_gray4,  col_cyan },
	[SchemeOut]  = { col_black,  col_aqua },
};

static const unsigned int alphas[][2]      = {
	/*                 fg      bg   */
	[SchemeNorm] = { OPAQUE, OPAQUE },
	[SchemeSel]  = { OPAQUE, OPAQUE },
	[SchemeOut]  = { OPAQUE, OPAQUE },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines      = 0;
static unsigned int lineheight = 0;         /* -h option; minimum height of a menu line     */

/*
 * Characters not considered part of a word while deleting words
 * for example: " /?\"&[]"
 */
static const char worddelimiters[] = " ";

/*
 * Use prefix matching by default; can be inverted with the -x flag.
 */
static int use_prefix = 1;