keymap_portuguese.h 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /* Copyright 2020
  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 PT_BSLS KC_GRV // (backslash)
  34. #define PT_1 KC_1 // 1
  35. #define PT_2 KC_2 // 2
  36. #define PT_3 KC_3 // 3
  37. #define PT_4 KC_4 // 4
  38. #define PT_5 KC_5 // 5
  39. #define PT_6 KC_6 // 6
  40. #define PT_7 KC_7 // 7
  41. #define PT_8 KC_8 // 8
  42. #define PT_9 KC_9 // 9
  43. #define PT_0 KC_0 // 0
  44. #define PT_QUOT KC_MINS // '
  45. #define PT_LDAQ KC_EQL // «
  46. // Row 2
  47. #define PT_Q KC_Q // Q
  48. #define PT_W KC_W // W
  49. #define PT_E KC_E // E
  50. #define PT_R KC_R // R
  51. #define PT_T KC_T // T
  52. #define PT_Y KC_Y // Y
  53. #define PT_U KC_U // U
  54. #define PT_I KC_I // I
  55. #define PT_O KC_O // O
  56. #define PT_P KC_P // P
  57. #define PT_PLUS KC_LBRC // +
  58. #define PT_ACUT KC_RBRC // ´ (dead)
  59. // Row 3
  60. #define PT_A KC_A // A
  61. #define PT_S KC_S // S
  62. #define PT_D KC_D // D
  63. #define PT_F KC_F // F
  64. #define PT_G KC_G // G
  65. #define PT_H KC_H // H
  66. #define PT_J KC_J // J
  67. #define PT_K KC_K // K
  68. #define PT_L KC_L // L
  69. #define PT_CCED KC_SCLN // Ç
  70. #define PT_MORD KC_QUOT // º
  71. #define PT_TILD KC_NUHS // ~ (dead)
  72. // Row 4
  73. #define PT_LABK KC_NUBS // <
  74. #define PT_Z KC_Z // Z
  75. #define PT_X KC_X // X
  76. #define PT_C KC_C // C
  77. #define PT_V KC_V // V
  78. #define PT_B KC_B // B
  79. #define PT_N KC_N // N
  80. #define PT_M KC_M // M
  81. #define PT_COMM KC_COMM // ,
  82. #define PT_DOT KC_DOT // .
  83. #define PT_MINS KC_SLSH // -
  84. /* Shifted symbols
  85. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  86. * │ | │ ! │ " │ # │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ » │ │
  87. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  88. * │ │ │ │ │ │ │ │ │ │ │ │ * │ ` │ │
  89. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  90. * │ │ │ │ │ │ │ │ │ │ │ │ ª │ ^ │ │
  91. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  92. * │ │ > │ │ │ │ │ │ │ │ ; │ : │ _ │ │
  93. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  94. * │ │ │ │ │ │ │ │ │
  95. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  96. */
  97. // Row 1
  98. #define PT_PIPE S(PT_BSLS) // |
  99. #define PT_EXLM S(PT_1) // !
  100. #define PT_DQUO S(PT_2) // "
  101. #define PT_HASH S(PT_3) // #
  102. #define PT_DLR S(PT_4) // $
  103. #define PT_PERC S(PT_5) // %
  104. #define PT_AMPR S(PT_6) // &
  105. #define PT_SLSH S(PT_7) // /
  106. #define PT_LPRN S(PT_8) // (
  107. #define PT_RPRN S(PT_9) // )
  108. #define PT_EQL S(PT_0) // =
  109. #define PT_QUES S(PT_QUOT) // ?
  110. #define PT_RDAQ S(PT_LDAQ) // »
  111. // Row 2
  112. #define PT_ASTR S(PT_PLUS) // *
  113. #define PT_GRV S(PT_ACUT) // ` (dead)
  114. // Row 3
  115. #define PT_FORD S(PT_MORD) // ª
  116. #define PT_CIRC S(PT_TILD) // ^ (dead)
  117. // Row 4
  118. #define PT_RABK S(PT_LABK) // >
  119. #define PT_SCLN S(PT_COMM) // ;
  120. #define PT_COLN S(PT_DOT) // :
  121. #define PT_UNDS S(PT_MINS) // _
  122. /* AltGr symbols
  123. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  124. * │ │ │ @ │ £ │ § │ │ │ { │ [ │ ] │ } │ │ │ │
  125. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  126. * │ │ │ │ € │ │ │ │ │ │ │ │ ¨ │ │ │
  127. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  128. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  129. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  130. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  131. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  132. * │ │ │ │ │ │ │ │ │
  133. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  134. */
  135. // Row 1
  136. #define PT_AT ALGR(PT_2) // @
  137. #define PT_PND ALGR(PT_3) // £
  138. #define PT_SECT ALGR(PT_4) // §
  139. #define PT_LCBR ALGR(PT_7) // {
  140. #define PT_LBRC ALGR(PT_8) // [
  141. #define PT_RBRC ALGR(PT_9) // ]
  142. #define PT_RCBR ALGR(PT_0) // }
  143. // Row 2
  144. #define PT_DIAE ALGR(PT_PLUS) // ¨ (dead)
  145. #define PT_EURO ALGR(PT_E) // €