keymap.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. // Fillers to make layering more clear
  13. #define _______ KC_TRNS
  14. #define XXXXXXX KC_NO
  15. // Defines for task manager and such
  16. #define CALTDEL LCTL(LALT(KC_DEL))
  17. #define TSKMGR LCTL(LSFT(KC_ESC))
  18. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  19. /* Qwerty
  20. * ,-------------.
  21. * | 1 | 2 |
  22. * |------+------|
  23. * | 3 | 4 |
  24. * |------+------|
  25. * | 5 | 6 |
  26. * |------+------|
  27. * | FUNC | 8 |
  28. * `-------------'
  29. */
  30. [_QWERTY] = LAYOUT( \
  31. KC_1, KC_2, \
  32. KC_3, KC_4, \
  33. KC_5, KC_6, \
  34. MO(_FUNC), KC_8 \
  35. ),
  36. /* Function
  37. * ,-------------.
  38. * | Q |CALDEL|
  39. * |------+------|
  40. * | A |TSKMGR|
  41. * |------+------|
  42. * | Z | X |
  43. * |------+------|
  44. * | | C |
  45. * `-------------'
  46. */
  47. [_FUNC] = LAYOUT( \
  48. KC_Q, CALTDEL, \
  49. KC_A, TSKMGR, \
  50. KC_Z, KC_X, \
  51. _______, KC_C \
  52. )
  53. };
  54. void matrix_init_user(void) {
  55. }