Mercurial > hg > index.fcgi > keynav-9pba
diff config.h.keypad @ 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config.h.keypad Tue Sep 08 22:45:57 2009 -0700 1.3 @@ -0,0 +1,47 @@ 1.4 +/* 1.5 + * 1.6 + * This is the C header configuration file for changing some of 1.7 + * the internal variables in 'keynav'. 1.8 + * 1.9 + */ 1.10 + 1.11 +/* window appearances */ 1.12 +#define BORDER 5 /* pixels */ 1.13 +#define PEN 3 /* pixels */ 1.14 +#define LINEWIDTH 3 /* pixels */ 1.15 +#define DRAG_COLOR "red" /* color when dragging*/ 1.16 +#define NORM_COLOR "yellow" /* color, normal */ 1.17 + 1.18 +/* keys -- see 'xev' for keysym strings */ 1.19 +#define TRIGGERMASK Mod4Mask /* X modifier key -- see 'xmodmap' */ 1.20 +#define KEY_LEFT "KP_Left" 1.21 +#define KEY_DOWN "KP_Down" 1.22 +#define KEY_UP "KP_Up" 1.23 +#define KEY_RIGHT "KP_Right" 1.24 +#define KEY_UPLEFT "KP_Home" 1.25 +#define KEY_DOWNLEFT "KP_End" 1.26 +#define KEY_UPRIGHT "KP_Prior" 1.27 +#define KEY_DOWNRIGHT "KP_Next" 1.28 +#define KEY_CENTER "KP_Begin" /* shift this toggles nine grid manually */ 1.29 +#define KEY_ONE "1" /* left mouse button (simple click) */ 1.30 +#define KEY_TWO "2" /* middle mouse button (simple click) */ 1.31 +#define KEY_THREE "3" /* right mouse button (simple click) */ 1.32 +#define KEY_TRIGGER "KP_Begin" /* trigger key */ 1.33 +#define KEY_Q_CLICK "KP_Divide" /* quick click (no warp) */ 1.34 +#define KEY_Q_RCLICK "KP_Multiply" /* quick right click (no warp) */ 1.35 +#define KEY_Q_MCLICK "KP_Subtract" /* quick middle click (no warp) */ 1.36 +#define KEY_QW_CLICK "KP_Enter" /* quick click (warp) */ 1.37 +#define KEY_QW_RCLICK "KP_Add" /* quick right click (warp) */ 1.38 +#define KEY_ESCAPE "Escape" /* cancel */ 1.39 +#define KEY_UNDO "KP_Insert" /* undo */ 1.40 + 1.41 +/* more mod masks */ 1.42 +#define CAPSLOCKMASK LockMask 1.43 +#define NUMLOCKMASK Mod2Mask 1.44 +#define SHIFTMASK ShiftMask /* shifting instead of splitting */ 1.45 +#define DRAGMASK ShiftMask /* dragging */ 1.46 +#define WARPMASK Mod4Mask /* warp during splitting/shifting */ 1.47 + 1.48 +/* undo options */ 1.49 +#define N_UNDO 15 /* max number of undo history -- must be at least 1 */ 1.50 +#define SHIFT_N_UNDO 2 /* number of undo history to jump back through when holding shift */