-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.def.h
94 lines (87 loc) · 3.71 KB
/
config.def.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */
/* -b option; if 0, dmenu appears at bottom */
static int topbar = 1;
/* -c option; centers dmenu on screen */
static int centered = 0;
/* minimum width when centered */
static int min_width = 250;
/* -fn option overrides fonts[0]; default X11 font or font set */
static char font[] = "DejaVu Sans Mono:pixelsize=16";
static char font0[] = "DejaVu Sans:pixelsize=16";
static char font1[] = "DejaVuSansM Nerd Font:pixelsize=16";
static char font2[] = "Noto Color Emoji:pixelsize=14";
static const char *fonts[] = {
font,
font0,
font1,
font2
};
static const unsigned int alpha = 0xe6;
/* -p option; prompt to the left of input field */
static const char *prompt = "run »";
static const char *symbol_1 = "«";
static const char *symbol_2 = "»";
static char foreground[] = "#cccccc";
static char background[] = "#000000";
static char selforeground[] = "#cccccc";
static char selbackground[] = "#4185d7";
static char selhighlightforeground[] = "#ffffff";
static char selhighlightbackground[] = "#4185d7";
static char normhighlightforeground[] = "#4185d7";
static char normhighlightbackground[] = "#000000";
static char outforeground[] = "#000000";
static char outbackground[] = "#1f5393";
static char outhighlightforeground[] = "#cccccc";
static char outhighlightbackground[] = "#1f5393";
static char *colors[SchemeLast][2] = {
/* foreground, background */
[SchemeNorm] = { foreground, background },
[SchemeSel] = { selforeground, selbackground },
[SchemeSelHighlight] = { selhighlightforeground, selhighlightbackground },
[SchemeNormHighlight] = { normhighlightforeground, normhighlightbackground },
[SchemeOut] = { outforeground, outbackground },
[SchemeOutHighlight] = { outhighlightforeground, outhighlightbackground },
};
static const unsigned int alphas[SchemeLast][2] = {
/* foreground, background */
[SchemeNorm] = { OPAQUE, alpha },
[SchemeSel] = { OPAQUE, OPAQUE },
[SchemeSelHighlight] = { OPAQUE, OPAQUE },
[SchemeNormHighlight] = { OPAQUE, alpha },
[SchemeOut] = { OPAQUE, OPAQUE },
[SchemeOutHighlight] = { OPAQUE, OPAQUE },
};
/* -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 = 24;
static unsigned int min_lineheight = 0;
/*
* Characters not considered part of a word while deleting words
* for example: " /?\"&[]"
*/
static const char worddelimiters[] = " ";
/* Size of the window border */
static unsigned int border_width = 0;
/*
* Xresources preferences to load at startup
*/
ResourcePref resources[] = {
{ "font", STRING, &font },
{ "font0", STRING, &font0 },
{ "font1", STRING, &font1 },
{ "font2", STRING, &font2 },
{ "foreground", STRING, &foreground },
{ "background", STRING, &background },
{ "selforeground", STRING, &selforeground },
{ "selbackground", STRING, &selbackground },
{ "selhighlightforeground", STRING, &selhighlightforeground },
{ "selhighlightbackground", STRING, &selhighlightbackground },
{ "normhighlightforeground", STRING, &normhighlightforeground },
{ "normhighlightbackground", STRING, &normhighlightbackground },
{ "outforeground", STRING, &outforeground },
{ "outbackground", STRING, &outbackground },
{ "outhighlightforeground", STRING, &outhighlightforeground },
{ "outhighlightbackground", STRING, &outhighlightbackground },
};