Mercurial > hg > index.fcgi > keynav-9pba
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config.h Tue Sep 08 22:45:57 2009 -0700 1.3 @@ -0,0 +1,48 @@ 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 "h" /* single characters */ 1.21 +#define KEY_DOWN "j" 1.22 +#define KEY_UP "k" 1.23 +#define KEY_RIGHT "l" 1.24 +#define KEY_UPLEFT "a" 1.25 +#define KEY_DOWNLEFT "s" 1.26 +#define KEY_UPRIGHT "d" 1.27 +#define KEY_DOWNRIGHT "f" 1.28 +#define KEY_CENTER "g" /* 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 "semicolon" /* trigger key */ 1.33 +#define KEY_Q_CLICK "semicolon" /* quick click (no warp) */ 1.34 +#define KEY_Q_RCLICK "apostrophe" /* quick right click (no warp) */ 1.35 +#define KEY_Q_MCLICK "backslash" /* quick middle click (no warp) */ 1.36 +#define KEY_QW_CLICK "space" /* quick click (warp) */ 1.37 +#define KEY_QW_RCLICK "Return" /* quick right click (warp) */ 1.38 +#define KEY_ESCAPE "Escape" /* cancel */ 1.39 +#define KEY_UNDO "u" /* undo */ 1.40 +#define KEY_HIDE "q" /* hide mouse cursor away to the lower right corner of screen */ 1.41 + 1.42 +/* more mod masks */ 1.43 +#define CAPSLOCKMASK LockMask 1.44 +#define NUMLOCKMASK Mod2Mask 1.45 +#define SHIFTMASK ShiftMask /* shifting instead of splitting */ 1.46 +#define DRAGMASK ShiftMask /* dragging */ 1.47 +#define WARPMASK Mod4Mask /* warp during splitting/shifting */ 1.48 + 1.49 +/* undo options */ 1.50 +#define N_UNDO 15 /* max number of undo history -- must be at least 1 */ 1.51 +#define SHIFT_N_UNDO 2 /* number of undo history to jump back through when holding shift */