rev |
line source |
paulo@0
|
1 /*
|
paulo@0
|
2 *
|
paulo@0
|
3 * This is the C header configuration file for changing some of
|
paulo@0
|
4 * the internal variables in 'keynav'.
|
paulo@0
|
5 *
|
paulo@0
|
6 */
|
paulo@0
|
7
|
paulo@0
|
8 /* window appearances */
|
paulo@0
|
9 #define BORDER 5 /* pixels */
|
paulo@0
|
10 #define PEN 3 /* pixels */
|
paulo@0
|
11 #define LINEWIDTH 3 /* pixels */
|
paulo@0
|
12 #define DRAG_COLOR "red" /* color when dragging*/
|
paulo@0
|
13 #define NORM_COLOR "yellow" /* color, normal */
|
paulo@0
|
14
|
paulo@0
|
15 /* keys -- see 'xev' for keysym strings */
|
paulo@0
|
16 #define TRIGGERMASK Mod4Mask /* X modifier key -- see 'xmodmap' */
|
paulo@0
|
17 #define KEY_LEFT "KP_Left"
|
paulo@0
|
18 #define KEY_DOWN "KP_Down"
|
paulo@0
|
19 #define KEY_UP "KP_Up"
|
paulo@0
|
20 #define KEY_RIGHT "KP_Right"
|
paulo@0
|
21 #define KEY_UPLEFT "KP_Home"
|
paulo@0
|
22 #define KEY_DOWNLEFT "KP_End"
|
paulo@0
|
23 #define KEY_UPRIGHT "KP_Prior"
|
paulo@0
|
24 #define KEY_DOWNRIGHT "KP_Next"
|
paulo@0
|
25 #define KEY_CENTER "KP_Begin" /* shift this toggles nine grid manually */
|
paulo@0
|
26 #define KEY_ONE "1" /* left mouse button (simple click) */
|
paulo@0
|
27 #define KEY_TWO "2" /* middle mouse button (simple click) */
|
paulo@0
|
28 #define KEY_THREE "3" /* right mouse button (simple click) */
|
paulo@0
|
29 #define KEY_TRIGGER "KP_Begin" /* trigger key */
|
paulo@0
|
30 #define KEY_Q_CLICK "KP_Divide" /* quick click (no warp) */
|
paulo@0
|
31 #define KEY_Q_RCLICK "KP_Multiply" /* quick right click (no warp) */
|
paulo@0
|
32 #define KEY_Q_MCLICK "KP_Subtract" /* quick middle click (no warp) */
|
paulo@0
|
33 #define KEY_QW_CLICK "KP_Enter" /* quick click (warp) */
|
paulo@0
|
34 #define KEY_QW_RCLICK "KP_Add" /* quick right click (warp) */
|
paulo@0
|
35 #define KEY_ESCAPE "Escape" /* cancel */
|
paulo@0
|
36 #define KEY_UNDO "KP_Insert" /* undo */
|
paulo@0
|
37
|
paulo@0
|
38 /* more mod masks */
|
paulo@0
|
39 #define CAPSLOCKMASK LockMask
|
paulo@0
|
40 #define NUMLOCKMASK Mod2Mask
|
paulo@0
|
41 #define SHIFTMASK ShiftMask /* shifting instead of splitting */
|
paulo@0
|
42 #define DRAGMASK ShiftMask /* dragging */
|
paulo@0
|
43 #define WARPMASK Mod4Mask /* warp during splitting/shifting */
|
paulo@0
|
44
|
paulo@0
|
45 /* undo options */
|
paulo@0
|
46 #define N_UNDO 15 /* max number of undo history -- must be at least 1 */
|
paulo@0
|
47 #define SHIFT_N_UNDO 2 /* number of undo history to jump back through when holding shift */
|