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