keymap_spanish.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* Copyright 2015-2016 Jack Humbert
  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. #ifndef KEYMAP_SPANISH_H
  17. #define KEYMAP_SPANISH_H
  18. #include "keymap.h"
  19. // Normal characters
  20. #define ES_OVRR KC_GRV
  21. #define ES_APOS KC_MINS
  22. #define ES_IEXL KC_EQL
  23. #define ES_GRV KC_LBRC
  24. #define ES_PLUS KC_RBRC
  25. #define ES_NTIL KC_SCLN
  26. #define ES_ACUT KC_QUOT
  27. #define ES_CCED KC_NUHS
  28. #define ES_LESS KC_NUBS
  29. #define ES_MINS KC_SLSH
  30. // Shifted characters
  31. #define ES_ASML LSFT(ES_OVRR)
  32. #define ES_QUOT LSFT(KC_2)
  33. #define ES_OVDT LSFT(KC_3)
  34. #define ES_AMPR LSFT(KC_6)
  35. #define ES_SLSH LSFT(KC_7)
  36. #define ES_LPRN LSFT(KC_8)
  37. #define ES_RPRN LSFT(KC_9)
  38. #define ES_EQL LSFT(KC_0)
  39. #define ES_QUES LSFT(ES_APOS)
  40. #define ES_IQUE LSFT(ES_IEXL)
  41. #define ES_CIRC LSFT(ES_GRV)
  42. #define ES_ASTR LSFT(ES_PLUS)
  43. #define ES_UMLT LSFT(ES_GRV)
  44. #define ES_GRTR LSFT(ES_LESS)
  45. #define ES_SCLN LSFT(KC_COMM)
  46. #define ES_COLN LSFT(KC_DOT)
  47. #define ES_UNDS LSFT(ES_MINS)
  48. // Alt Gr-ed characters
  49. #define ES_BSLS ALGR(ES_OVRR)
  50. #define ES_PIPE ALGR(KC_1)
  51. #define ES_AT ALGR(KC_2)
  52. #define ES_HASH ALGR(KC_3)
  53. #define ES_TILD ALGR(ES_NTIL)
  54. #define ES_EURO ALGR(KC_5)
  55. #define ES_NOT ALGR(KC_6)
  56. #define ES_LBRC ALGR(ES_GRV)
  57. #define ES_RBRC ALGR(ES_PLUS)
  58. #define ES_LCBR ALGR(ES_ACUT)
  59. #define ES_RCBR ALGR(ES_CCED)
  60. #endif