/* 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 colorprompt = 1; /* -p option; if 1, prompt uses SchemeSel, otherwise SchemeNorm */ static int centered = 0; /* -c option; centers dmenu on screen */ static int min_width = 240; /* minimum width when centered */ static unsigned int lineheight = 26; static unsigned int min_lineheight = 24; /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *defaultfonts[] = { "Fira Code:pixelsize=18:style=Regular:antialias=true:autohint=true", "DejaVuSansM Nerd Font:pixelsize=18:style=Regular:antialias=true:autohint=true" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *defaultcolors[SchemeLast][2] = { /* fg bg */ [SchemeNorm] = { "#ffffff", "#1c1c1c" }, [SchemeSel] = { "#ffffff", "#005577" }, [SchemeSelHighlight] = { "#ffc978", "#005577" }, [SchemeNormHighlight] = { "#ffc978", "#1c1c1c" }, [SchemeOut] = { "#ffffff", "#383838" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 10; /* * Characters not considered part of a word while deleting words * for example: " /?\"&[]" */ static const char worddelimiters[] = " "; /* Size of the window border */ static const unsigned int border_width = 0; /* Whether to wrap around to the top and bottom of the menu */ static int wrap_around = 1; /* height of each scroll region above and below the menu, in units of menu items */ static int scrollregion = 4;