logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

keymap.c (4042B)


  1. /*
  2. * This program is free software: you can redistribute it and/or modify
  3. * it under the terms of the GNU General Public License as published by
  4. * the Free Software Foundation, either version 2 of the License, or
  5. * (at your option) any later version.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #include QMK_KEYBOARD_H
  16. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  17. /* Base
  18. * ┌──────┬─────┬──────┬───────┐
  19. * │NUMLK │ │ │QK_BOOT│
  20. * ├──────┼─────├──────┼───────┤
  21. * │NUMPAD│MINI │ FN │ │
  22. * ├──────┼─────┼──────┼───────┤
  23. * │ 1 │ 2 │ 3 │ 4 │
  24. * ├──────┼─────┼──────┼───────┤
  25. * │ │ │RSHIFT│ RCTRL │
  26. * └──────┴─────┴──────┴───────┘
  27. */
  28. [0] = LAYOUT_ortho_4x4(
  29. KC_NUM, KC_NO, KC_NO, QK_BOOT,
  30. TO(1), TO(2), TO(3), KC_NO,
  31. KC_1, KC_2, KC_3, KC_4,
  32. KC_NO, KC_NO, KC_RSFT, KC_RCTL
  33. ),
  34. /* Numpad
  35. * ┌─────┬─────┬─────┬─────┐
  36. * │ 7 │ 8 │ 9 │ * │
  37. * ├─────┼─────├─────┼─────┤
  38. * │ 4 │ 5 │ 6 │ - │
  39. * ├─────┼─────┼─────┼─────┤
  40. * │ 1 │ 2 │ 3 │ + │
  41. * ├─────┼─────┼─────┼─────┤
  42. * │ 0 │ . │ / │ = │
  43. * └─────┴─────┴─────┴─────┘
  44. */
  45. [1] = LAYOUT_ortho_4x4(
  46. KC_P7, KC_P8, KC_P9, KC_PAST,
  47. KC_P4, KC_P5, KC_P6, KC_PMNS,
  48. KC_P1, KC_P2, KC_P3, KC_PPLS,
  49. KC_P0, KC_PDOT, KC_PSLS, LT(3, KC_PENT)
  50. ),
  51. /* Mini KeyBoard
  52. * ┌─────┬─────┬─────┬─────┐
  53. * │ ESC │ 1 │ 2 │ 3 │
  54. * ├─────┼─────┼─────┼─────┤
  55. * │ TAB │ Q │ W │ E │
  56. * ├─────┼─────┼─────┼─────┤
  57. * │SHIFT│ A │ S │ D │
  58. * ├─────┼─────┼─────┼─────┤
  59. * │CTRL │ C │ R │SPACE│
  60. * └─────┴─────┴─────┴─────┘
  61. */
  62. [2] = LAYOUT_ortho_4x4(
  63. LT(3, KC_ESC), KC_1, KC_2, KC_3,
  64. KC_TAB, KC_Q, KC_W, KC_E,
  65. KC_LSFT, KC_A, KC_S, KC_D,
  66. KC_LCTL, KC_C, KC_R, KC_SPC
  67. ),
  68. /* FN Keyboard
  69. * ┌─────┬─────┬─────┬─────┐
  70. * │ F1 │ F2 │ F3 │ F4 │
  71. * ├─────┼─────┼─────┼─────┤
  72. * │ F5 │ F6 │ F7 │ F8 │
  73. * ├─────┼─────┼─────┼─────┤
  74. * │ F9 │ F10 │ F11 │ F12 │
  75. * ├─────┼─────┼─────┼─────┤
  76. * │BASE │ │ │ │
  77. * └─────┴─────┴─────┴─────┘
  78. */
  79. [3] = LAYOUT_ortho_4x4(
  80. KC_F1, KC_F2, KC_F3, KC_F4,
  81. KC_F5, KC_F6, KC_F7, KC_F8,
  82. KC_F9, KC_F10, KC_F11, KC_F12,
  83. TO(0), KC_NO, KC_NO, KC_NO
  84. ),
  85. };