keymap.c 6.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* This program is free software: you can redistribute it and/or modify
  2. * it under the terms of the GNU General Public License as published by
  3. * the Free Software Foundation, either version 2 of the License, or
  4. * (at your option) any later version.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. * GNU General Public License for more details.
  10. *
  11. * You should have received a copy of the GNU General Public License
  12. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include QMK_KEYBOARD_H
  15. enum planck_layers {
  16. _BASE,
  17. _LOWER,
  18. _RAISE,
  19. _ADJUST
  20. };
  21. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  22. /* Base
  23. * ,-----------------------------------------------------------------------------------.
  24. * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp |
  25. * |------+------+------+------+------+-------------+------+------+------+------+------|
  26. * | Tab | A | S | D | F | G | H | J | K | L | ; | " |
  27. * |------+------+------+------+------+------|------+------+------+------+------+------|
  28. * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
  29. * |------+------+------+------+------+------+------+------+------+------+------+------|
  30. * | Adjst| Ctrl | Gui | Alt |Lower | Space |Raise | Left | Down | Up |Right |
  31. * `-----------------------------------------------------------------------------------'
  32. */
  33. [_BASE] = LAYOUT_planck_mit(
  34. KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
  35. KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
  36. KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
  37. MO(_ADJUST), KC_LCTL, KC_LGUI, KC_LALT, MO(_LOWER), KC_SPC, MO(_RAISE), KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
  38. ),
  39. /* Lower
  40. * ,-----------------------------------------------------------------------------------.
  41. * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
  42. * |------+------+------+------+------+-------------+------+------+------+------+------|
  43. * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
  44. * |------+------+------+------+------+------|------+------+------+------+------+------|
  45. * | | F7 | F8 | F9 | F10 | F11 | F12 | | | Home | End | |
  46. * |------+------+------+------+------+------+------+------+------+------+------+------|
  47. * | | | | | | | | Next | Vol- | Vol+ | Play |
  48. * `-----------------------------------------------------------------------------------'
  49. */
  50. [_LOWER] = LAYOUT_planck_mit(
  51. KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
  52. KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
  53. _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_HOME, KC_END, _______,
  54. _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
  55. ),
  56. /* Raise
  57. * ,-----------------------------------------------------------------------------------.
  58. * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
  59. * |------+------+------+------+------+-------------+------+------+------+------+------|
  60. * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
  61. * |------+------+------+------+------+------|------+------+------+------+------+------|
  62. * | | F7 | F8 | F9 | F10 | F11 | F12 | | |Pg Up |Pg Dn | |
  63. * |------+------+------+------+------+------+------+------+------+------+------+------|
  64. * | | | | | | | | Next | Vol- | Vol+ | Play |
  65. * `-----------------------------------------------------------------------------------'
  66. */
  67. [_RAISE] = LAYOUT_planck_mit(
  68. KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
  69. KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
  70. _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_PGUP, KC_PGDN, _______,
  71. _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
  72. ),
  73. /* Adjust
  74. * ,----------------------------------------------------------- ------------------------.
  75. * | | Reset| Debug| | | | | | | | | Del |
  76. * |------+------+------+------+------+-------------+------+------+------+------+------|
  77. * | | | | | | | | | | | | |
  78. * |------+------+------+------+------+------|------+------+------+------+------+------|
  79. * | | | | | | | | | | | | |
  80. * |------+------+------+------+------+------+------+------+------+------+------+------|
  81. * | | | | | | | | | | | |
  82. * `-----------------------------------------------------------------------------------'
  83. */
  84. [_ADJUST] = LAYOUT_planck_mit(
  85. _______, RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL ,
  86. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  87. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
  88. _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
  89. )
  90. };