My dmenu build
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
1.2 KiB

  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=13",
  7. "fontawesome:size=15"
  8. };
  9. static const char *prompt = NULL; /* -p option; prompt to the left of input field */
  10. static const char *colors[SchemeLast][2] = {
  11. /* fg bg */
  12. [SchemeNorm] = { "#bbbbbb", "#222222" },
  13. [SchemeSel] = { "#eeeeee", "#630fe8" },
  14. [SchemeOut] = { "#000000", "#00ffff" },
  15. };
  16. /* -l option; if nonzero, dmenu uses vertical list with given number of lines */
  17. static unsigned int lines = 0;
  18. static unsigned int lineheight = 37; /* -h option; minimum height of a menu line */
  19. static int dmx = 10; /* put dmenu at this x offset */
  20. static int dmy = 10; /* put dmenu at this y offset (measured from the bottom if topbar is 0) */
  21. static unsigned int dmw = 1900; /* make dmenu this wide */
  22. /*
  23. * Characters not considered part of a word while deleting words
  24. * for example: " /?\"&[]"
  25. */
  26. static const char worddelimiters[] = " ";