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

3 years ago
  1. #pragma once
  2. #include <X11/keysym.h>
  3. #include "typedefs.h"
  4. // slow normal high
  5. static unsigned int speeds[] = { 375, 1550, 3500 };
  6. #include "key-actions.c"
  7. #define MODKEY Mod1Mask
  8. static Key keys[] = {
  9. // modifier key function argument
  10. {0, XK_h, &mouse_move, MM_Left},
  11. {0, XK_l, &mouse_move, MM_Right},
  12. {0, XK_k, &mouse_move, MM_Up},
  13. {0, XK_j, &mouse_move, MM_Down},
  14. {0, XK_i, &mouse_scroll, SD_Up},
  15. {0, XK_m, &mouse_scroll, SD_Down},
  16. {0, XK_f, &mouse_click, MB_Left},
  17. {0, XK_g, &mouse_click, MB_Right},
  18. {0, XK_d, &mouse_click, MB_Middle},
  19. {0, XK_a, &control_action, CA_SPEED_LOW},
  20. {0, XK_s, &control_action, CA_SPEED_HIGH},
  21. {0, XK_q, &control_action, CA_QUIT_APPLICATION},
  22. };