config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. "monospace: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. };
  18. static const unsigned int alphas[SchemeLast][2] = {
  19. /* fgalpha bgalphga */
  20. [SchemeNorm] = { fgalpha, bgalpha },
  21. [SchemeSel] = { fgalpha, bgalpha },
  22. [SchemeOut] = { fgalpha, bgalpha },
  23. };
  24. /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
  25. static unsigned int lines = 0;
  26. /*
  27. * Characters not considered part of a word while deleting words
  28. * for example: " /?\"&[]"
  29. */
  30. static const char worddelimiters[] = " ";