logo

qmk_firmware

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

keymap.c (4779B)


  1. /* Copyright 2019 Rozakiin
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include QMK_KEYBOARD_H
  17. // Each layer gets a name for readability, which is then used in the keymap matrix below.
  18. // The underscores don't mean anything - you can have a layer called STUFF or any other name.
  19. // Layer names don't all need to be of the same length, obviously, and you can also skip them
  20. // entirely and just use numbers.
  21. enum layer_names {
  22. _BL,
  23. _FL1,
  24. _FL2,
  25. _FL3
  26. };
  27. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  28. /* Base Layer
  29. * ┌───┬───┬───┬───┐
  30. * │Esc│BLT│BL-│BL+│
  31. * ├───┼───┼───┼───┤
  32. * │NLK│ / │ * │ = │
  33. * ├───┼───┼───┼───┤
  34. * │ 7 │ 8 │ 9 │ - │
  35. * ├───┼───┼───┼───┤
  36. * │ 4 │ 5 │ 6 │ + │
  37. * ├───┼───┼───┼───┤
  38. * │ 1 │ 2 │ 3 │ENT│
  39. * ├───┼───┼───┼───┤
  40. * │ 0 │ 0 │ . │ENT│
  41. * └───┴───┴───┴───┘
  42. */
  43. [_BL] = LAYOUT_ortho_6x4(
  44. KC_ESC, BL_TOGG, BL_DOWN, BL_UP,
  45. KC_NUM, KC_PSLS, KC_PAST, KC_PEQL,
  46. KC_P7, KC_P8, KC_P9, KC_PMNS,
  47. KC_P4, KC_P5, KC_P6, KC_PPLS,
  48. KC_P1, KC_P2, KC_P3, KC_PENT,
  49. KC_P0, KC_P0, KC_PDOT, KC_PENT
  50. ),
  51. /* Function Layer 1
  52. * ┌───┬───┬───┬───┐
  53. * │ │ │ │ │
  54. * ├───┼───┼───┼───┤
  55. * │ │ │ │ │
  56. * ├───┼───┼───┼───┤
  57. * │ │ │ │ │
  58. * ├───┼───┼───┼───┤
  59. * │ │ │ │ │
  60. * ├───┼───┼───┼───┤
  61. * │ │ │ │ │
  62. * ├───┼───┼───┼───┤
  63. * │ │ │ │ │
  64. * └───┴───┴───┴───┘
  65. */
  66. [_FL1] = LAYOUT_ortho_6x4(
  67. _______, _______, _______, _______,
  68. _______, _______, _______, _______,
  69. _______, _______, _______, _______,
  70. _______, _______, _______, _______,
  71. _______, _______, _______, _______,
  72. _______, _______, _______, _______
  73. ),
  74. /* Function Layer 2
  75. * ┌───┬───┬───┬───┐
  76. * │ │ │ │ │
  77. * ├───┼───┼───┼───┤
  78. * │ │ │ │ │
  79. * ├───┼───┼───┼───┤
  80. * │ │ │ │ │
  81. * ├───┼───┼───┼───┤
  82. * │ │ │ │ │
  83. * ├───┼───┼───┼───┤
  84. * │ │ │ │ │
  85. * ├───┼───┼───┼───┤
  86. * │ │ │ │ │
  87. * └───┴───┴───┴───┘
  88. */
  89. [_FL2] = LAYOUT_ortho_6x4(
  90. _______, _______, _______, _______,
  91. _______, _______, _______, _______,
  92. _______, _______, _______, _______,
  93. _______, _______, _______, _______,
  94. _______, _______, _______, _______,
  95. _______, _______, _______, _______
  96. ),
  97. /* Function Layer 3
  98. * ┌───┬───┬───┬───┐
  99. * │ │ │ │ │
  100. * ├───┼───┼───┼───┤
  101. * │ │ │ │ │
  102. * ├───┼───┼───┼───┤
  103. * │ │ │ │ │
  104. * ├───┼───┼───┼───┤
  105. * │ │ │ │ │
  106. * ├───┼───┼───┼───┤
  107. * │ │ │ │ │
  108. * ├───┼───┼───┼───┤
  109. * │ │ │ │ │
  110. * └───┴───┴───┴───┘
  111. */
  112. [_FL3] = LAYOUT_ortho_6x4(
  113. _______, _______, _______, _______,
  114. _______, _______, _______, _______,
  115. _______, _______, _______, _______,
  116. _______, _______, _______, _______,
  117. _______, _______, _______, _______,
  118. _______, _______, _______, _______
  119. ),
  120. };