add lastitem and adapt code to general code style
[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
71b4db92 20 /*
21 * The variables below cannot be set by X resources.
22 * Their values must be less than .height_pixels.
23 */
685ca30d 24
8902c43b 25 /* geometry of the right-pointing isoceles triangle for submenus */
26 .triangle_width = 3,
27 .triangle_height = 7,
685ca30d 28
71b4db92 29 /* the icon size is equal to .height_pixels - .iconpadding * 2 */
30 .iconpadding = 2,
31
32 /* area around the icon, the triangle and the separator */
33 .horzpadding = 8,
8902c43b 34};
7b166488 35
36/*
37 * KEYBINDINGS
38 *
39 * Look at your /usr/include/X11/keysymdef.h (or the equivalent file
40 * in your system) for a list of key symbol constants, and change the
41 * macros below accordingly. Note there IS NO equal sign (=) between
42 * the macros and their values. All key symbol constants begin with
43 * the prefix XK_
44 *
45 * For example, to use vim-like key bindings, set KEYSYMLEFT to XK_h,
46 * KEYSYMDOWN to XK_j, KEYSYMUP to XK_k, etc.
47 *
48 * Note that the regular keys like ArrowUp, ArrowDown, Tab, Home, etc
49 * will ALWAYS work, so you do not need to set them.
50 *
51 * If you do not want to set a key binding, keep it with the value of
52 * XK_VoidSymbol
53 */
54#define KSYMFIRST XK_VoidSymbol /* select first item */
55#define KSYMLAST XK_VoidSymbol /* select last item */
56#define KSYMUP XK_VoidSymbol /* select previous item */
57#define KSYMDOWN XK_VoidSymbol /* select next item */
58#define KSYMLEFT XK_VoidSymbol /* close current menu */
59#define KSYMRIGHT XK_VoidSymbol /* enter selected item */