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.

77 lines
1.9 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  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. // Alt gr
  20. #define ALGR(kc) RALT(kc)
  21. #define NO_ALGR KC_RALT
  22. // Normal characters
  23. #define ES_OVRR KC_GRV
  24. #define ES_APOS KC_MINS
  25. #define ES_IEXL KC_EQL
  26. #define ES_GRV KC_LBRC
  27. #define ES_PLUS KC_RBRC
  28. #define ES_NTIL KC_SCLN
  29. #define ES_ACUT KC_QUOT
  30. #define ES_CCED KC_NUHS
  31. #define ES_LESS KC_NUBS
  32. #define ES_MINS KC_SLSH
  33. // Shifted characters
  34. #define ES_ASML LSFT(ES_OVRR)
  35. #define ES_QUOT LSFT(KC_2)
  36. #define ES_OVDT LSFT(KC_3)
  37. #define ES_AMPR LSFT(KC_6)
  38. #define ES_SLSH LSFT(KC_7)
  39. #define ES_LPRN LSFT(KC_8)
  40. #define ES_RPRN LSFT(KC_9)
  41. #define ES_EQL LSFT(KC_0)
  42. #define ES_QUES LSFT(ES_APOS)
  43. #define ES_IQUE LSFT(ES_IEXL)
  44. #define ES_CIRC LSFT(ES_GRV)
  45. #define ES_ASTR LSFT(ES_PLUS)
  46. #define ES_UMLT LSFT(ES_GRV)
  47. #define ES_GRTR LSFT(ES_LESS)
  48. #define ES_SCLN LSFT(ES_COMM)
  49. #define ES_COLN LSFT(ES_DOT)
  50. #define ES_UNDS LSFT(ES_MINS)
  51. // Alt Gr-ed characters
  52. #define ES_BSLS ALGR(ES_OVRR)
  53. #define ES_PIPE ALGR(KC_1)
  54. #define ES_AT ALGR(KC_2)
  55. #define ES_HASH ALGR(KC_3)
  56. #define ES_TILD ALGR(ES_NTIL)
  57. #define ES_EURO ALGR(KC_5)
  58. #define ES_NOT ALGR(KC_6)
  59. #define ES_LBRC ALGR(ES_GRV)
  60. #define ES_RBRC ALGR(ES_PLUS)
  61. #define ES_LCBR ALGR(ES_ACUT)
  62. #define ES_RCRB ALGR(ES_CCED)
  63. #endif