keymap.c 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // Below layout is based upon /u/That-Canadian's planck layout
  2. #include QMK_KEYBOARD_H
  3. extern keymap_config_t keymap_config;
  4. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  5. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  6. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  7. // entirely and just use numbers.
  8. #define _QWERTY 0
  9. #define _RGB 1
  10. #define _FUNC 15
  11. // Defines for task manager and such
  12. #define CALTDEL LCTL(LALT(KC_DEL))
  13. #define TSKMGR LCTL(LSFT(KC_ESC))
  14. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  15. /* Qwerty
  16. * ,-------------.
  17. * | 1 | 2 |
  18. * |------+------|
  19. * | 3 | 4 |
  20. * |------+------|
  21. * | 5 | 6 |
  22. * |------+------|
  23. * | FUNC | RGB |
  24. * `-------------'
  25. */
  26. [_QWERTY] = LAYOUT( \
  27. KC_1, KC_2, \
  28. KC_3, KC_4, \
  29. KC_5, KC_6, \
  30. MO(_FUNC), TG(_RGB) \
  31. ),
  32. /* RGB
  33. * ,-------------.
  34. * | Mode-| Mode+|
  35. * |------+------|
  36. * | HUE- | HUE+ |
  37. * |------+------|
  38. * | SAT- | SAT+ |
  39. * |------+------|
  40. * |RGBTOG| |
  41. * `-------------'
  42. */
  43. [_RGB] = LAYOUT( \
  44. RGB_RMOD, RGB_MOD, \
  45. RGB_HUD, RGB_HUI, \
  46. RGB_SAD, RGB_SAI, \
  47. RGB_TOG, KC_TRNS \
  48. ),
  49. /* Function
  50. * ,-------------.
  51. * | Q |CALDEL|
  52. * |------+------|
  53. * | A |TSKMGR|
  54. * |------+------|
  55. * | Z | X |
  56. * |------+------|
  57. * | | C |
  58. * `-------------'
  59. */
  60. [_FUNC] = LAYOUT( \
  61. KC_Q, CALTDEL, \
  62. KC_A, TSKMGR, \
  63. KC_Z, KC_X, \
  64. _______, KC_C \
  65. )
  66. };
  67. void matrix_init_user(void) {}