config.def.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 opacity = 1; /* -o option; if 0, then alpha is disabled */
  5. static int caret_width = 2; /* -cw option; set default caret width */
  6. static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */
  7. static int center = 1; /* -c option; if 0, dmenu won't be centered on the screen */
  8. static int min_width = 750; /* minimum width when centered */
  9. /* -fn option overrides fonts[0]; default X11 font or font set */
  10. static char *fonts[] =
  11. {
  12. "Fira Sans:size=12:antialias=true:autohint=true"
  13. "Font Awesome 6:pixelsize=16:antialias=true:autohint=true"
  14. "NotoColorEmoji:pixelsize=10:antialias=true:autohint=true"
  15. };
  16. static const char *prompt = NULL; /* -p option; prompt to the left of input field */
  17. static const unsigned int baralpha = 0xd0;
  18. static const unsigned int borderalpha = OPAQUE;
  19. static const unsigned int alphas[][3] = {
  20. /* fg bg border */
  21. [SchemeNorm] = { OPAQUE, baralpha, borderalpha },
  22. [SchemeSel] = { OPAQUE, baralpha, borderalpha },
  23. [SchemeBorder] = { OPAQUE, OPAQUE, OPAQUE },
  24. [SchemeMid] = { OPAQUE, baralpha, borderalpha },
  25. [SchemeSelHighlight] = { OPAQUE, baralpha, borderalpha },
  26. [SchemeNormHighlight] = { OPAQUE, baralpha, borderalpha },
  27. };
  28. static
  29. char *colors[][2] = {
  30. /* fg bg */
  31. [SchemeNorm] = { "#a7a7a7", "#141414" },
  32. [SchemeSel] = { "#808fa0", "#141414" },
  33. [SchemeOut] = { "#000000", "#00ffff" },
  34. [SchemeBorder] = { "#505050", "#505050" },
  35. [SchemeMid] = { "#a7a7a7", "#141414" },
  36. [SchemeSelHighlight] = { "#9d5b61", "#141414" },
  37. [SchemeNormHighlight] = { "#838d69", "#141414" },
  38. };
  39. /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
  40. static unsigned int lines = 5;
  41. static unsigned int lineheight = 35; /* -h option; minimum height of a menu line */
  42. static unsigned int min_lineheight = 12;
  43. /*
  44. * Characters not considered part of a word while deleting words
  45. * for example: " /?\"&[]"
  46. */
  47. static const char worddelimiters[] = " ";
  48. /* Size of the window border */
  49. static unsigned int border_width = 1;
  50. /*
  51. * Use prefix matching by default; can be inverted with the -x flag.
  52. */
  53. static int use_prefix = 1;