summaryrefslogtreecommitdiff
path: root/config.h
blob: 3c18ae3c8a1b32faa121ae047d87c749c4a11cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

/* the rate at which the mouse moves in Hz */
static const unsigned int move_rate = 50;

/* the speed with no modifier (pixels per second) */
static const unsigned int default_speed = 300;

static SpeedBindings speed_bindings[] = {
    /* key             speed */  
    { XK_Super_L,      2000 },
    { XK_Alt_L,        1000 },
    { XK_a,            60   },
    { XK_Control_L,    10   },
};

/* you can also add any other direction (e.g. diagonals) */
static MoveBinding move_bindings[] = {
    /* key         x      y */
    { XK_j,        -1,     0 },
    { XK_l,         1,     0 },
    { XK_i,         0,    -1 },
    { XK_k,         0,     1 },
};

/* 1: left
 * 2: middle
 * 3: right
 * 4: scroll up
 * 5: scroll down */
static ClickBinding click_bindings[] = {
    /* key         button */  
    { XK_space,    1 },
    { XK_f,        1 },
    { XK_d,        2 },
    { XK_s,        3 },
    { XK_plus,     4 },
    { XK_minus,    5 },
};

static ShellBinding shell_bindings[] = {
    /* key         command */  
    { XK_b,        "wmctrl -a firefox" },
    { XK_0,        "xdotool mousemove 0 0" },
};

/* exits on key release which allows click and exit with one key */
static KeySym exit_keys[] = {
    XK_Escape, XK_q, XK_space
};