hid_liber.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Copyright 2011 Jun Wako <wakojun@gmail.com>: Original TMK layout
  2. * Copyright 2018 bakageta <amo@bakageta.com>
  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. #pragma once
  18. #include "quantum.h"
  19. #define ___ KC_NO
  20. /* Tenkeyless keyboard default layout, ISO & ANSI (ISO is between Left Shift
  21. * and Z, and the ANSI \ key above Return/Enter is used for the additional ISO
  22. * switch in the ASD row next to enter. Use NUBS as keycode for the first and
  23. * NUHS as the keycode for the second.
  24. *
  25. * ,---. ,---------------. ,---------------. ,---------------. ,-----------.
  26. * |Esc| |F1 |F2 |F3 |F4 | |F5 |F6 |F7 |F8 | |F9 |F10|F11|F12| |PrS|ScL|Pau|
  27. * `---' `---------------' `---------------' `---------------' `-----------'
  28. * ,-----------------------------------------------------------. ,-----------.
  29. * |~ | 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp | |Ins|Hom|PgU|
  30. * |-----------------------------------------------------------| |-----------|
  31. * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| |Del|End|PgD|
  32. * |-----------------------------------------------------------| `-----------'
  33. * |Caps | A| S| D| F| G| H| J| K| L| ;| '|Return |
  34. * |-----------------------------------------------------------| ,---.
  35. * |Shft|ISO| Z| X| C| V| B| N| M| ,| .| /|Shift | |Up |
  36. * |-----------------------------------------------------------| ,-----------.
  37. * |Ctl|Gui|Alt| Space |Alt|Gui|App|Ctl| |Lef|Dow|Rig|
  38. * `-----------------------------------------------------------' `-----------'
  39. */
  40. #define LAYOUT( \
  41. KG1, KH7, KJ7, KJ6, KJ1, KO5, KL1, KA6, KA7, KD7, KD5, KD1, KD2, KB5, KB3, KO3, \
  42. KG7, KG5, KH5, KJ5, KI5, KI7, KK7, KK5, KL5, KA5, KC5, KC7, KL7, KD6, KQ7, KN7, KM7, \
  43. KG6, KG3, KH3, KJ3, KI3, KI6, KK6, KK3, KL3, KA3, KC3, KC6, KL6, KD4, KP7, KN5, KM5, \
  44. KH6, KG4, KH4, KJ4, KI4, KI1, KK1, KK4, KL4, KA4, KC4, KC1, KD0, \
  45. KF6, KH1, KG0, KH0, KJ0, KI0, KI2, KK2, KK0, KL0, KA0, KC2, KF4, KN1, \
  46. KO7, KE6, KB1, KP1, KB2, KR4, KA2, KO0, KN2, KP2, KQ2 \
  47. ) { \
  48. /* 0 1 2 3 4 5 6 7 */ \
  49. /* A */ { KA0 , ___ , KA2 , KA3 , KA4 , KA5 , KA6 , KA7 }, \
  50. /* B */ { ___ , KB1 , KB2 , KB3 , ___ , KB5 , ___ , ___ }, \
  51. /* C */ { ___ , KC1 , KC2 , KC3 , KC4 , KC5 , KC6 , KC7 }, \
  52. /* D */ { KD0 , KD1 , KD2 , ___ , KD4 , KD5 , KD6 , KD7 }, \
  53. /* E */ { ___ , ___ , ___ , ___ , ___ , ___ , KE6 , ___ }, \
  54. /* F */ { ___ , ___ , ___ , ___ , KF4 , ___ , KF6 , ___ }, \
  55. /* G */ { KG0 , KG1 , ___ , KG3 , KG4 , KG5 , KG6 , KG7 }, \
  56. /* H */ { KH0 , KH1 , ___ , KH3 , KH4 , KH5 , KH6 , KH7 }, \
  57. /* I */ { KI0 , KI1 , KI2 , KI3 , KI4 , KI5 , KI6 , KI7 }, \
  58. /* J */ { KJ0 , KJ1 , ___ , KJ3 , KJ4 , KJ5 , KJ6 , KJ7 }, \
  59. /* K */ { KK0 , KK1 , KK2 , KK3 , KK4 , KK5 , KK6 , KK7 }, \
  60. /* L */ { KL0 , KL1 , ___ , KL3 , KL4 , KL5 , KL6 , KL7 }, \
  61. /* M */ { ___ , ___ , ___ , ___ , ___ , KM5 , ___ , KM7 }, \
  62. /* N */ { ___ , KN1 , KN2 , ___ , ___ , KN5 , ___ , KN7 }, \
  63. /* O */ { KO0 , ___ , ___ , KO3 , ___ , KO5 , ___ , KO7 }, \
  64. /* P */ { ___ , KP1 , KP2 , ___ , ___ , ___ , ___ , KP7 }, \
  65. /* Q */ { ___ , ___ , KQ2 , ___ , ___ , ___ , ___ , KQ7 }, \
  66. /* R */ { ___ , ___ , ___ , ___ , KR4 , ___ , ___ , ___ } \
  67. }