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.

60 lines
1.3 KiB

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