dmenu/config.def.h

45 lines
1.6 KiB
C
Raw Permalink Normal View History

/* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */
2015-11-08 22:03:34 +00:00
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
2025-03-03 19:19:41 +00:00
static const unsigned int alpha = 0xe3; /* Amount of opacity. 0xff is opaque */
2025-03-03 12:29:32 +00:00
static int centered = 1; /* -c option; centers dmenu on screen */
2025-03-03 19:19:41 +00:00
static int min_width = 1000; /* minimum width when centered */
2025-03-03 17:38:03 +00:00
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
2025-03-03 19:19:41 +00:00
"monospace:size=17",
"Noto Color Emoji:size=17"
};
2016-01-11 12:26:37 +00:00
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
2025-03-25 08:17:04 +00:00
/* fg bg */
[SchemeNorm] = { "#dddddd", "#111111" },
2025-04-01 13:56:23 +00:00
[SchemeSel] = { "#000000", "#ffd000" },
[SchemeOut] = { "#000000", "#bcad1f" },
[SchemeCaret] = { "#fede5e", NULL },
[SchemeBorder] = { "#dcf000", NULL },
};
2025-03-03 17:04:54 +00:00
2025-03-03 13:11:54 +00:00
/* -l and -g options; controls number of lines and columns in grid if > 0 */
2025-03-03 11:21:12 +00:00
static unsigned int lines = 9;
2025-03-25 08:17:04 +00:00
static unsigned int columns = 2;
2025-03-03 11:47:03 +00:00
static const unsigned int alphas[SchemeLast][2] = {
[SchemeNorm] = { OPAQUE, alpha },
[SchemeSel] = { OPAQUE, alpha },
[SchemeOut] = { OPAQUE, alpha },
2025-03-03 17:45:53 +00:00
[SchemeCaret] = { OPAQUE, OPAQUE },
2025-03-03 19:19:41 +00:00
[SchemeBorder] = { 0xf2, 0xf2 },
2025-03-03 11:47:03 +00:00
};
/*
* Characters not considered part of a word while deleting words
* for example: " /?\"&[]"
*/
static const char worddelimiters[] = " ";
2025-03-03 12:06:21 +00:00
/* Size of the window border */
static unsigned int border_width = 3;