| 1 | /* See LICENSE file for copyright and license details. */ |
| 2 | /* Default settings; can be overriden by command line. */ |
| 3 | |
| 4 | static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ |
| 5 | static int centered = 1; /* -c option; centers dmenu on screen */ |
| 6 | static int min_width = 600; /* minimum width when centered */ |
| 7 | static int max_width = 1000; /* maximum width when centered */ |
| 8 | static const float menu_height_ratio = 4.0f; /* This is the ratio used in the original calculation */ |
| 9 | /* -fn option overrides fonts[0]; default X11 font or font set */ |
| 10 | static const char *fonts[] = { |
| 11 | "BerkeleyMono Nerd Font:size=16" |
| 12 | }; |
| 13 | static const char *prompt = NULL; /* -p option; prompt to the left of input field */ |
| 14 | static const char *colors[SchemeLast][2] = { |
| 15 | /* fg bg */ |
| 16 | [SchemeNorm] = { "#ffffff", "#121113" }, |
| 17 | [SchemeSel] = { "#fbcb97", "#121113" }, |
| 18 | [SchemeOut] = { "#000000", "#00ffff" }, |
| 19 | }; |
| 20 | /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ |
| 21 | static unsigned int lines = 0; |
| 22 | |
| 23 | /* |
| 24 | * Characters not considered part of a word while deleting words |
| 25 | * for example: " /?\"&[]" |
| 26 | */ |
| 27 | static const char worddelimiters[] = " "; |
| 28 | |
| 29 | /* Size of the window border */ |
| 30 | static unsigned int border_width = 1; |