dmenu.config.def.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* See LICENSE file for copyright and license details. */
  2. /* Default settings; can be overriden by command line. */
  3. static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
  4. static int colorprompt = 1; /* -p option; if 1, prompt uses SchemeSel, otherwise SchemeNorm */
  5. static int centered = 0; /* -c option; centers dmenu on screen */
  6. static int min_width = 500; /* minimum width when centered */
  7. static unsigned int lineheight = 0;
  8. static unsigned int min_lineheight = 8;
  9. /* -fn option overrides fonts[0]; default X11 font or font set */
  10. static const char *defaultfonts[] = {
  11. "monospace:size=28"
  12. };
  13. static const char *prompt = NULL; /* -p option; prompt to the left of input field */
  14. static const char *defaultcolors[SchemeLast][2] = {
  15. /* fg bg */
  16. [SchemeNorm] = { "#ffffff", "#000000" },
  17. [SchemeSel] = { "#000000", "#ff84b6" },
  18. [SchemeSelHighlight] = { "#9F083B", "#ff84b6" },
  19. [SchemeNormHighlight] = { "#F83A3A", "#000000" },
  20. [SchemeOut] = { "#ffffff", "#000000" },
  21. };
  22. /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
  23. static unsigned int lines = 0;
  24. /*
  25. * Characters not considered part of a word while deleting words
  26. * for example: " /?\"&[]"
  27. */
  28. static const char worddelimiters[] = " ";
  29. /* Size of the window border */
  30. static const unsigned int border_width = 1;
  31. /* Whether to wrap around to the top and bottom of the menu */
  32. static int wrap_around = 0;
  33. /* height of each scroll region above and below the menu, in units of menu items */
  34. static int scrollregion = 4;