view config.h @ 0:ab8a496afb67

initial hg commit of my version of keynav
author paulo@thepaulopc
date Tue, 08 Sep 2009 22:45:57 -0700
parents
children
line source
1 /*
2 *
3 * This is the C header configuration file for changing some of
4 * the internal variables in 'keynav'.
5 *
6 */
8 /* window appearances */
9 #define BORDER 5 /* pixels */
10 #define PEN 3 /* pixels */
11 #define LINEWIDTH 3 /* pixels */
12 #define DRAG_COLOR "red" /* color when dragging*/
13 #define NORM_COLOR "yellow" /* color, normal */
15 /* keys -- see 'xev' for keysym strings */
16 #define TRIGGERMASK Mod4Mask /* X modifier key -- see 'xmodmap' */
17 #define KEY_LEFT "h" /* single characters */
18 #define KEY_DOWN "j"
19 #define KEY_UP "k"
20 #define KEY_RIGHT "l"
21 #define KEY_UPLEFT "a"
22 #define KEY_DOWNLEFT "s"
23 #define KEY_UPRIGHT "d"
24 #define KEY_DOWNRIGHT "f"
25 #define KEY_CENTER "g" /* shift this toggles nine grid manually */
26 #define KEY_ONE "1" /* left mouse button (simple click) */
27 #define KEY_TWO "2" /* middle mouse button (simple click) */
28 #define KEY_THREE "3" /* right mouse button (simple click) */
29 #define KEY_TRIGGER "semicolon" /* trigger key */
30 #define KEY_Q_CLICK "semicolon" /* quick click (no warp) */
31 #define KEY_Q_RCLICK "apostrophe" /* quick right click (no warp) */
32 #define KEY_Q_MCLICK "backslash" /* quick middle click (no warp) */
33 #define KEY_QW_CLICK "space" /* quick click (warp) */
34 #define KEY_QW_RCLICK "Return" /* quick right click (warp) */
35 #define KEY_ESCAPE "Escape" /* cancel */
36 #define KEY_UNDO "u" /* undo */
37 #define KEY_HIDE "q" /* hide mouse cursor away to the lower right corner of screen */
39 /* more mod masks */
40 #define CAPSLOCKMASK LockMask
41 #define NUMLOCKMASK Mod2Mask
42 #define SHIFTMASK ShiftMask /* shifting instead of splitting */
43 #define DRAGMASK ShiftMask /* dragging */
44 #define WARPMASK Mod4Mask /* warp during splitting/shifting */
46 /* undo options */
47 #define N_UNDO 15 /* max number of undo history -- must be at least 1 */
48 #define SHIFT_N_UNDO 2 /* number of undo history to jump back through when holding shift */