keymap.c 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* Copyright 2021 Batuhan Başerdem
  2. * <baserdem.batuhan@gmail.com> @bbaserdem
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include QMK_KEYBOARD_H
  18. #include "bbaserdem.h"
  19. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  20. // Base layer
  21. [_BASE] = LAYOUT_ortho_4x12_wrapper(
  22. _BL1_5_,_BL1_1_,_BR1_1_,_BR1_5_,
  23. _BL2_5_,_BL2_1_,_BR2_1_,_BR2_5_,
  24. _BL3_5_,_BL3_1_,_BR3_1_,_BR3_5_,
  25. BB_ENC0,KC_DOWN,KC_UP, _BL4_3_,_BR4_3_,KC_LEFT,KC_RGHT,RGB_TOG
  26. ),
  27. // Extra characters overlay
  28. [_CHAR] = LAYOUT_ortho_4x12_wrapper(
  29. _CL1_5_,xxx2xxx,_CR1_5_,
  30. _CL2_5_,xxx2xxx,_CR2_5_,
  31. _CL3_5_,xxx2xxx,_CR3_5_,
  32. ___3___,_CL4_3_,_CR4_3_,___3___
  33. ),
  34. // Game layer: left_half
  35. [_GAME] = LAYOUT_ortho_4x12_wrapper(
  36. _GA1_5_,_GA1_1_,___6___,
  37. _GA2_5_,_GA2_1_,___6___,
  38. _GA3_5_,_GA3_1_,___6___,
  39. ___3___,_GA4_3_,___6___
  40. ),
  41. // Media layer: right_half
  42. [_MEDI] = LAYOUT_ortho_4x12_wrapper(
  43. ___6___,xxx1xxx,_ME1_5_,
  44. ___6___,xxx1xxx,_ME2_5_,
  45. ___6___,xxx1xxx,_ME3_5_,
  46. ___6___,_ME4_3_,___3___
  47. ),
  48. // Navigation layer: right_half
  49. [_NAVI] = LAYOUT_ortho_4x12_wrapper(
  50. ___6___,xxx1xxx,_NA1_5_,
  51. ___6___,xxx1xxx,_NA2_5_,
  52. ___6___,xxx1xxx,_NA3_5_,
  53. ___6___,_NA4_3_,___3___
  54. ),
  55. // Symbol layer: right_half
  56. [_SYMB] = LAYOUT_ortho_4x12_wrapper(
  57. ___6___,xxx1xxx,_SY1_5_,
  58. ___6___,xxx1xxx,_SY2_5_,
  59. ___6___,xxx1xxx,_SY3_5_,
  60. ___6___,_SY4_3_,___3___
  61. ),
  62. // Number layer: left_half
  63. [_NUMB] = LAYOUT_ortho_4x12_wrapper(
  64. xxx1xxx,_NU1_5_,___6___,
  65. xxx1xxx,_NU2_5_,___6___,
  66. xxx1xxx,_NU3_5_,___6___,
  67. ___3___,_NU4_3_,___6___
  68. ),
  69. // Function layer: left_half
  70. [_FUNC] = LAYOUT_ortho_4x12_wrapper(
  71. _FU1_5_,xxx1xxx,___6___,
  72. _FU2_5_,xxx1xxx,___6___,
  73. _FU3_5_,xxx1xxx,___6___,
  74. ___3___,_FU4_3_,___6___
  75. ),
  76. // Mouse layer: left_half
  77. [_MOUS] = LAYOUT_ortho_4x12_wrapper(
  78. _MO1_5_,xxx1xxx,___6___,
  79. _MO2_5_,xxx1xxx,___6___,
  80. _MO3_5_,xxx1xxx,___6___,
  81. ___3___,_MO4_3_,___6___
  82. ),
  83. // Music layer: everything
  84. [_MUSI] = LAYOUT_ortho_4x12_wrapper(
  85. _MU_12_,_MU_12_,_MU_12_,
  86. ___1___,_MU_02_,_MUL_3_,_MUR_3_,_MU_02_,___1___)
  87. };