keymap.c 1.3 KB

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