X-Git-Url: https://git.subgeniuskitty.com/xmenu/.git/blobdiff_plain/71b4db9241be4617b44b3504cd970a1c94c0bc5c..1b566a90545f0adfcb4b36a729b0f4ab4f0afefb:/config.h diff --git a/config.h b/config.h index d6a8807..0723fcd 100644 --- a/config.h +++ b/config.h @@ -1,6 +1,6 @@ static struct Config config = { - /* font */ - .font = "monospace:size=9", /* for regular items */ + /* font, separate different fonts with comma */ + .font = "monospace:size=9,DejaVuSansMono:size=9", /* colors */ .background_color = "#FFFFFF", @@ -32,3 +32,27 @@ static struct Config config = { /* area around the icon, the triangle and the separator */ .horzpadding = 8, }; + +/* + * KEYBINDINGS + * + * Look at your /usr/include/X11/keysymdef.h (or the equivalent file + * in your system) for a list of key symbol constants, and change the + * macros below accordingly. All key symbol constants begin with the + * prefix XK_. + * + * For example, to use vim-like key bindings, set KEYSYMLEFT to XK_h, + * KEYSYMDOWN to XK_j, KEYSYMUP to XK_k, etc. + * + * Note that the regular keys like ArrowUp, ArrowDown, Tab, Home, etc + * will ALWAYS work, so you do not need to set them. + * + * If you do not want to set a key binding, keep it with the value of + * XK_VoidSymbol + */ +#define KSYMFIRST XK_VoidSymbol /* select first item */ +#define KSYMLAST XK_VoidSymbol /* select last item */ +#define KSYMUP XK_VoidSymbol /* select previous item */ +#define KSYMDOWN XK_VoidSymbol /* select next item */ +#define KSYMLEFT XK_VoidSymbol /* close current menu */ +#define KSYMRIGHT XK_VoidSymbol /* enter selected item */