keyboards.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #pragma once
  2. /*
  3. Copyright 2018 Eric Gebhart <e.a.gebhart@gmail.com>
  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. 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. 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. // Kyria
  16. #ifdef KEYBOARD_splitkb_kyria
  17. #define BASE Base_2x6_8_5
  18. #define BASEt6 Base_2x6_8_5t6
  19. #define TRANS Transient_2x6_8_5
  20. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  21. #endif
  22. // Corne
  23. #ifdef KEYBOARD_crkbd
  24. #define BASE Base_3x6_3
  25. #define BASEt6 Base_3x6_3t6
  26. #define TRANS Transient_3x6_3
  27. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  28. #endif
  29. // Ergodox ez.
  30. #ifdef KEYBOARD_ergodox_ez
  31. #define BASE Base_dox
  32. #define BASEt6 Base_doxt6
  33. #define TRANS Transient_dox
  34. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  35. // tell the keymap we want to specify number rows.
  36. // 4x10 input instead 3x10.
  37. #define BASE_NUMBER_ROW // turn on 4 row base templates.
  38. #endif
  39. // XD75
  40. #ifdef KEYBOARD_xiudi_xd75
  41. #define BASE Base_5x15
  42. #define BASEt6 Base_5x15t6
  43. #define TRANS Transient_5x15
  44. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  45. // tell the keymap we want to specify number rows.
  46. // 4x10 input instead 3x10.
  47. #define BASE_NUMBER_ROW // turn on 4 row base templates.
  48. #endif
  49. // Viterbi
  50. #ifdef KEYBOARD_keebio_viterbi
  51. #define BASE Base_5x14
  52. #define BASEt6 Base_5x14t6
  53. #define TRANS Transient_5x14
  54. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  55. // tell the keymap we want to specify number rows.
  56. // 4x10 input instead 3x10.
  57. #define BASE_NUMBER_ROW // turn on 4 row base templates.
  58. #endif
  59. // Rebound
  60. #ifdef KEYBOARD_montsinger_rebound
  61. #define BASE Base_rebound
  62. #define BASEt6 Base_reboundt6
  63. #define TRANS Rebound_transient
  64. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  65. #endif
  66. // Kinesis
  67. #if defined(KEYBOARD_kinesis_alvicstep) \
  68. || defined(KEYBOARD_kinesis_stapelberg) \
  69. || defined(KEYBOARD_kinesis_kint2pp) \
  70. || defined(KEYBOARD_kinesis_nguyenvietyen) \
  71. || defined(KEYBOARD_kinesis_kint36) \
  72. || defined(KEYBOARD_kinesis_kint41) \
  73. || defined(KEYBOARD_kinesis_kintlc)
  74. #undef LAYOUT_PVARG
  75. #define LAYOUT_PVARG(...) LAYOUT_pretty(__VA_ARGS__)
  76. // Base layers 4x10, so numbers are enabled, and a 3x10 for the keymap.
  77. // Transient function layers are all 3x10.
  78. #define BASE Base_4x6_4_6
  79. #define BASEt6 Base_4x6_4_6t6
  80. #define TRANS Transient_4x6_4_6
  81. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  82. // tell the keymap we want to specify number rows.
  83. // 4x10 input instead 3x10.
  84. #define BASE_NUMBER_ROW // turn on 4 row base templates.
  85. #endif
  86. // My Morpho Dactyl
  87. #ifdef KEYBOARD_gebhart_morpho
  88. #undef LAYOUT_PVARG
  89. #define LAYOUT_PVARG(...) LAYOUT_split_4x6_5_8(__VA_ARGS__)
  90. #define BASE Base_4x6_5_8
  91. #define BASEt6 Base_4x6_5_8t6
  92. #define TRANS Transient_4x6_5_8
  93. #define BASE_COLS_IN_OUT 5_6 // 5, 5_6, 6
  94. // tell the keymap we want to specify number rows.
  95. // 4x10 input instead 3x10.
  96. #define BASE_NUMBER_ROW // turn on 4 row base templates.
  97. #endif