keymap_italian.h 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* Copyright 2015-2016 Matthias Schmidtt
  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. #pragma once
  17. #include "keymap.h"
  18. // clang-format off
  19. /*
  20. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  21. * │ \ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ ' │ ì │ │
  22. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  23. * │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ è │ + │ │
  24. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  25. * │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ò │ à │ ù │ │
  26. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  27. * │ │ < │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ - │ │
  28. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  29. * │ │ │ │ │ │ │ │ │
  30. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  31. */
  32. // Row 1
  33. #define IT_BSLS KC_GRV // (backslash)
  34. #define IT_1 KC_1 // 1
  35. #define IT_2 KC_2 // 2
  36. #define IT_3 KC_3 // 3
  37. #define IT_4 KC_4 // 4
  38. #define IT_5 KC_5 // 5
  39. #define IT_6 KC_6 // 6
  40. #define IT_7 KC_7 // 7
  41. #define IT_8 KC_8 // 8
  42. #define IT_9 KC_9 // 9
  43. #define IT_0 KC_0 // 0
  44. #define IT_QUOT KC_MINS // '
  45. #define IT_IGRV KC_EQL // ì
  46. // Row 2
  47. #define IT_Q KC_Q // Q
  48. #define IT_W KC_W // W
  49. #define IT_E KC_E // E
  50. #define IT_R KC_R // R
  51. #define IT_T KC_T // T
  52. #define IT_Y KC_Y // Y
  53. #define IT_U KC_U // U
  54. #define IT_I KC_I // I
  55. #define IT_O KC_O // O
  56. #define IT_P KC_P // P
  57. #define IT_EGRV KC_LBRC // è
  58. #define IT_PLUS KC_RBRC // +
  59. // Row 3
  60. #define IT_A KC_A // A
  61. #define IT_S KC_S // S
  62. #define IT_D KC_D // D
  63. #define IT_F KC_F // F
  64. #define IT_G KC_G // G
  65. #define IT_H KC_H // H
  66. #define IT_J KC_J // J
  67. #define IT_K KC_K // K
  68. #define IT_L KC_L // L
  69. #define IT_OGRV KC_SCLN // ò
  70. #define IT_AGRV KC_QUOT // à
  71. #define IT_UGRV KC_NUHS // ù
  72. // Row 4
  73. #define IT_LABK KC_NUBS // <
  74. #define IT_Z KC_Z // Z
  75. #define IT_X KC_X // X
  76. #define IT_C KC_C // C
  77. #define IT_B KC_B // B
  78. #define IT_V KC_V // V
  79. #define IT_N KC_N // N
  80. #define IT_M KC_M // M
  81. #define IT_COMM KC_COMM // ,
  82. #define IT_DOT KC_DOT // .
  83. #define IT_MINS KC_SLSH // -
  84. /* Shifted symbols
  85. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  86. * │ | │ ! │ " │ £ │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ ^ │ │
  87. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  88. * │ │ │ │ │ │ │ │ │ │ │ │ é │ * │ │
  89. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  90. * │ │ │ │ │ │ │ │ │ │ │ ç │ ° │ § │ │
  91. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  92. * │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │
  93. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  94. * │ │ │ │ │ │ │ │ │
  95. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  96. */
  97. // Row 1
  98. #define IT_PIPE S(IT_BSLS) // |
  99. #define IT_EXLM S(IT_1) // !
  100. #define IT_DQUO S(IT_2) // "
  101. #define IT_PND S(IT_3) // £
  102. #define IT_DLR S(IT_4) // $
  103. #define IT_PERC S(IT_5) // %
  104. #define IT_AMPR S(IT_6) // &
  105. #define IT_SLSH S(IT_7) // /
  106. #define IT_LPRN S(IT_8) // (
  107. #define IT_RPRN S(IT_9) // )
  108. #define IT_EQL S(IT_0) // =
  109. #define IT_QUES S(IT_QUOT) // ?
  110. #define IT_CIRC S(IT_IGRV) // ^
  111. // Row 2
  112. #define IT_EACU S(IT_EGRV) // é
  113. #define IT_ASTR S(IT_PLUS) // *
  114. // Row 3
  115. #define IT_CCED S(IT_OGRV) // ç
  116. #define IT_DEG S(IT_AGRV) // °
  117. #define IT_SECT S(IT_UGRV) // §
  118. // Row 4
  119. #define IT_RABK S(IT_LABK) // >
  120. #define IT_COLN S(IT_DOT) // :
  121. #define IT_SCLN S(IT_COMM) // ;
  122. #define IT_UNDS S(IT_MINS) // _
  123. /* AltGr symbols
  124. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  125. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  126. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  127. * │ │ │ │ € │ │ │ │ │ │ │ │ [ │ ] │ │
  128. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  129. * │ │ │ │ │ │ │ │ │ │ │ @ │ # │ │ │
  130. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  131. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  132. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  133. * │ │ │ │ │ │ │ │ │
  134. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  135. */
  136. // Row 2
  137. #define IT_EURO ALGR(IT_E) // €
  138. #define IT_LBRC ALGR(IT_EGRV) // [
  139. #define IT_RBRC ALGR(IT_PLUS) // ]
  140. // Row 3
  141. #define IT_AT ALGR(IT_OGRV) // @
  142. #define IT_HASH ALGR(IT_AGRV) // #
  143. /* Shift+AltGr symbols
  144. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  145. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  146. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  147. * │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ │
  148. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  149. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  150. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  151. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  152. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  153. * │ │ │ │ │ │ │ │ │
  154. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  155. */
  156. // Row 2
  157. #define IT_LCBR S(ALGR(IT_EGRV)) // {
  158. #define IT_RCBR S(ALGR(IT_PLUS)) // }