A mirror of phillbush's xmenu.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

62 rindas
2.1 KiB

  1. static struct Config config = {
  2. /* font, separate different fonts with comma */
  3. .font = "monospace:size=9,DejaVuSansMono:size=9",
  4. /* colors */
  5. .background_color = "#FFFFFF",
  6. .foreground_color = "#2E3436",
  7. .selbackground_color = "#3584E4",
  8. .selforeground_color = "#FFFFFF",
  9. .separator_color = "#CDC7C2",
  10. .border_color = "#E6E6E6",
  11. /* sizes in pixels */
  12. .width_pixels = 130, /* minimum width of a menu */
  13. .height_pixels = 25, /* height of a single menu item */
  14. .border_pixels = 1, /* menu border */
  15. .separator_pixels = 3, /* space around separator */
  16. .gap_pixels = 0, /* gap between menus */
  17. /* text alignment, set to LeftAlignment, CenterAlignment or RightAlignment */
  18. .alignment = LeftAlignment,
  19. /*
  20. * The variables below cannot be set by X resources.
  21. * Their values must be less than .height_pixels.
  22. */
  23. /* geometry of the right-pointing isoceles triangle for submenus */
  24. .triangle_width = 3,
  25. .triangle_height = 7,
  26. /* the icon size is equal to .height_pixels - .iconpadding * 2 */
  27. .iconpadding = 2,
  28. /* area around the icon, the triangle and the separator */
  29. .horzpadding = 8,
  30. };
  31. /*
  32. * KEYBINDINGS
  33. *
  34. * Look at your /usr/include/X11/keysymdef.h (or the equivalent file
  35. * in your system) for a list of key symbol constants, and change the
  36. * macros below accordingly. All key symbol constants begin with the
  37. * prefix XK_.
  38. *
  39. * For example, to use vim-like key bindings, set KEYSYMLEFT to XK_h,
  40. * KEYSYMDOWN to XK_j, KEYSYMUP to XK_k, etc.
  41. *
  42. * Note that the regular keys like ArrowUp, ArrowDown, Tab, Home, etc
  43. * will ALWAYS work, so you do not need to set them.
  44. *
  45. * If you do not want to set a key binding, keep it with the value of
  46. * XK_VoidSymbol
  47. */
  48. #define KSYMFIRST XK_VoidSymbol /* select first item */
  49. #define KSYMLAST XK_VoidSymbol /* select last item */
  50. #define KSYMUP XK_VoidSymbol /* select previous item */
  51. #define KSYMDOWN XK_VoidSymbol /* select next item */
  52. #define KSYMLEFT XK_VoidSymbol /* close current menu */
  53. #define KSYMRIGHT XK_VoidSymbol /* enter selected item */