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.

59 lines
1.2 KiB

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