config.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. /* -fn option overrides fonts[0]; default X11 font or font set */
  5. static const char *fonts[] = {
  6. "Source Code Pro:size=10",
  7. "JoyPixels:pixelsize=8:antialias=true:autohint=true"
  8. };
  9. static const unsigned int bgalpha = 0xe0;
  10. static const unsigned int fgalpha = OPAQUE;
  11. static const char *prompt = NULL; /* -p option; prompt to the left of input field */
  12. static const char *colors[SchemeLast][2] = {
  13. /* fg bg */
  14. [SchemeNorm] = { "#bbbbbb", "#222222" },
  15. [SchemeSel] = { "#eeeeee", "#005577" },
  16. [SchemeOut] = { "#000000", "#00ffff" },
  17. [SchemeNorm] = { "#ebdbb2", "#282828" },
  18. [SchemeSel] = { "#ebdbb2", "#98971a" },
  19. [SchemeOut] = { "#ebdbb2", "#8ec07c" },
  20. };
  21. static const unsigned int alphas[SchemeLast][2] = {
  22. /* fgalpha bgalphga */
  23. [SchemeNorm] = { fgalpha, bgalpha },
  24. [SchemeSel] = { fgalpha, bgalpha },
  25. [SchemeOut] = { fgalpha, bgalpha },
  26. };
  27. /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
  28. static unsigned int lines = 0;
  29. /*
  30. * Characters not considered part of a word while deleting words
  31. * for example: " /?\"&[]"
  32. */
  33. static const char worddelimiters[] = " ";
  34. /* Size of the window border */
  35. static unsigned int border_width = 3;