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