aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
blob: 9673152f579935be50808160790cad90eb881930 (plain)
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
#ifdef _laptop
#define laptop(...)   __VA_ARGS__
#define komputer(...)
#endif

#ifdef _komputer
#define komputer(...) __VA_ARGS__
#define laptop(...)
#endif

/* 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 draw_input = 1;                  /* -noi option; if 0, the input will not be drawn by default */
static int centered = 0;                    /* -c option; centers dmenu on screen */
       int vertpad = 0;                     /* vertical padding of bar */
       int sidepad = 0;                     /* horizontal padding of bar */
static int min_width = 500;                 /* minimum width when centered */
static const float menu_height_ratio = 4.0f;/* This is the ratio used in the original calculation */
static const unsigned int alpha = 0xee;     /* Amount of opacity. 0xff is opaque             */
/* -fn option overrides fonts[0]; default X11 font or font set */
static char font[] = "JetBrains Mono Nerd Font Propo:size=10";
static const char *fonts[] = {
	font,
	"JetBrains Mono Nerd Font Propo:size=10"
};
static char *prompt      = NULL;      /* -p  option; prompt to the left of input field */

laptop (
static char normfgcolor[] = "#bbbbbb";
static char normbgcolor[] = "#222222";
static char selfgcolor[]  = "#eeeeee";
static char selbgcolor[] = "#b20701";)

komputer(
static char normbgcolor[] = "#0c0e1b";
static char normfgcolor[] = "#b0b1e0";
static char selfgcolor[]  = "#0c0e1b";
static char selbgcolor[]  = "#b0b1e0";
)

static char *colors[SchemeLast][2] = {
	/*     fg         bg       */
	[SchemeNorm] = { normfgcolor, normbgcolor },
	[SchemeSel]  = { selfgcolor,  selbgcolor  },
	[SchemeOut]  = { "#000000",   "#00ffff" },

};

static const unsigned int alphas[SchemeLast][2] = {
	[SchemeNorm] = { OPAQUE, alpha },
	[SchemeSel] = { OPAQUE, alpha },
	[SchemeOut] = { OPAQUE, alpha },
};
/* -l and -g options; controls number of lines and columns in grid if > 0 */
static unsigned int lines      = 0;
static unsigned int columns    = 0;

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

/*
 * Xresources preferences to load at startup
 */
ResourcePref resources[] = {
	{ "font",        STRING, &font },
	{ "normfgcolor", STRING, &normfgcolor },
	{ "normbgcolor", STRING, &normbgcolor },
	{ "selfgcolor",  STRING, &selfgcolor },
	{ "selbgcolor",  STRING, &selbgcolor },
	{ "prompt",      STRING, &prompt },
};


/* Size of the window border */
laptop (static unsigned int border_width = 2;)
komputer (static unsigned int border_width = 0;)

/*
 * -vi option; if nonzero, vi mode is always enabled and can be
 * accessed with the global_esc keysym + mod mask
 */
static unsigned int vi_mode = 1;
static unsigned int start_mode = 0;			/* mode to use when -vi is passed. 0 = insert mode, 1 = normal mode */
static Key global_esc = { XK_n, Mod1Mask };	/* escape key when vi mode is not enabled explicitly */
static Key quit_keys[] = {
	/* keysym	modifier */
	{ XK_q,		0 }
};