You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
#pragma once
|
|
|
|
#include <X11/keysym.h>
|
|
|
|
#include "typedefs.h"
|
|
|
|
// slow normal high
|
|
static unsigned int speeds[] = { 375, 1550, 3500 };
|
|
|
|
#include "key-actions.c"
|
|
|
|
#define MODKEY Mod1Mask
|
|
|
|
static Key keys[] = {
|
|
// modifier key function argument
|
|
{0, XK_h, &mouse_move, MM_Left},
|
|
{0, XK_l, &mouse_move, MM_Right},
|
|
{0, XK_k, &mouse_move, MM_Up},
|
|
{0, XK_j, &mouse_move, MM_Down},
|
|
{0, XK_i, &mouse_scroll, SD_Up},
|
|
{0, XK_m, &mouse_scroll, SD_Down},
|
|
{0, XK_f, &mouse_click, MB_Left},
|
|
{0, XK_g, &mouse_click, MB_Right},
|
|
{0, XK_d, &mouse_click, MB_Middle},
|
|
{0, XK_a, &control_action, CA_SPEED_LOW},
|
|
{0, XK_s, &control_action, CA_SPEED_HIGH},
|
|
{0, XK_q, &control_action, CA_QUIT_APPLICATION},
|
|
};
|