config.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "JetBrainsMono Nerd Font:pixelsize=14:antialias=true:autohint=true",
  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. /* gruvbox colors */
  18. [SchemeNorm] = { "#ebdbb2", "#282828" },
  19. [SchemeSel] = { "#ebdbb2", "#98971a" },
  20. [SchemeOut] = { "#ebdbb2", "#8ec07c" },
  21. /* nord colors */
  22. [SchemeNorm] = { "#D8DEE9", "#2E3440" },
  23. [SchemeSel] = { "#2E3440", "#81A1C1" },
  24. [SchemeOut] = { "#D8DEE9", "#A3BE8C" },
  25. };
  26. static const unsigned int alphas[SchemeLast][2] = {
  27. /* fgalpha bgalphga */
  28. [SchemeNorm] = { fgalpha, bgalpha },
  29. [SchemeSel] = { fgalpha, bgalpha },
  30. [SchemeOut] = { fgalpha, bgalpha },
  31. };
  32. /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
  33. static unsigned int lines = 0;
  34. /*
  35. * Characters not considered part of a word while deleting words
  36. * for example: " /?\"&[]"
  37. */
  38. static const char worddelimiters[] = " ";
  39. /* Size of the window border */
  40. static unsigned int border_width = 0;