You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
3.5 KiB

  1. /*
  2. Copyright 2021 Robin Liu
  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. 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. 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. #pragma once
  15. #include "quantum.h"
  16. /*
  17. * Default layout:
  18. * 2.75u - 2.25u spacebar
  19. */
  20. #define LAYOUT_default( \
  21. K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
  22. K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
  23. K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
  24. K301, K302, K304, K306, K308, K309 \
  25. ) { \
  26. { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
  27. { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
  28. { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
  29. { KC_NO, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310 } \
  30. }
  31. /*
  32. * Spaceswap layout:
  33. * Electrically identical to default
  34. * 2.25u - 2.75u spacebar
  35. */
  36. #define LAYOUT_spaceswap( \
  37. K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
  38. K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
  39. K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
  40. K301, K302, K304, K306, K308, K309 \
  41. ) { \
  42. { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
  43. { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
  44. { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
  45. { KC_NO, K301, K302, KC_NO, K304, KC_NO, K306, KC_NO, K308, K309, K310 } \
  46. }
  47. /*
  48. * 6.25u spacebar layout:
  49. * 6.25u spacebar
  50. */
  51. #define LAYOUT_space6p25u( \
  52. K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
  53. K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
  54. K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
  55. K301, K302, K306, K309 \
  56. ) { \
  57. { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
  58. { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
  59. { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
  60. { KC_NO, K301, K302, KC_NO, KC_NO, KC_NO, K306, KC_NO, KC_NO, K309, K310 } \
  61. }
  62. /*
  63. * 7u spacebar layout:
  64. * 7u spacebar
  65. */
  66. #define LAYOUT_space7u( \
  67. K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K310, \
  68. K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, \
  69. K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, \
  70. K301, K304, K309 \
  71. ) { \
  72. { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010 }, \
  73. { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110 }, \
  74. { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210 }, \
  75. { KC_NO, K301, KC_NO, KC_NO, K304, KC_NO, KC_NO, KC_NO, KC_NO, K309, K310 } \
  76. }