My patched version of dmenu.
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.

28 lines
1.1 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. /* See LICENSE file for copyright and license details. */
  2. static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
  3. static int centered = 0; /* -c option; centers dmenu on screen */
  4. static int min_width = 500; /* minimum width when centered */
  5. /* -fn option overrides fonts[0]; default X11 font or font set */
  6. static const char *fonts[] = {
  7. "monospace:size=10"
  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] = { "#bc3c4b", "#000000" },
  13. [SchemeSel] = { "#000000", "#bc3c4b" },
  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. /*
  19. * Characters not considered part of a word while deleting words
  20. * for example: " /?\"&[]"
  21. */
  22. static const char worddelimiters[] = " ";
  23. /* Size of the window border */
  24. static const unsigned int border_width = 2;