diff options
author | Jack Humbert <jack.humb@gmail.com> | 2015-10-25 14:02:26 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-25 14:02:26 -0400 |
commit | 61fea81a2469da4db9f161c7d4bdf90fe66a3dd2 (patch) | |
tree | 819b75d72b763b88258bf4e03033620be3f0ab42 /keyboard/planck | |
parent | 31dd8ea34a1be52057f993e98a4cee353ef0e196 (diff) |
spanish layout
Diffstat (limited to 'keyboard/planck')
-rw-r--r-- | keyboard/planck/keymap_french.h | 12 | ||||
-rw-r--r-- | keyboard/planck/keymap_nordic.h | 8 | ||||
-rw-r--r-- | keyboard/planck/keymap_spanish.h | 62 |
3 files changed, 72 insertions, 10 deletions
diff --git a/keyboard/planck/keymap_french.h b/keyboard/planck/keymap_french.h index 342e0faebe..71c8033c2a 100644 --- a/keyboard/planck/keymap_french.h +++ b/keyboard/planck/keymap_french.h @@ -1,5 +1,5 @@ -#ifndef KEYMAP_NORDIC_H -#define KEYMAP_NORDIC_H +#ifndef KEYMAP_FRENCH_H +#define KEYMAP_FRENCH_H #include "keymap_common.h" @@ -67,15 +67,15 @@ // Alt Gr-ed characters #define FR_TILD ALGR(KC_2) #define FR_HASH ALGR(KC_3) -#define FR_LBRC ALGR(KC_4) -#define FR_LBRK ALGR(KC_5) +#define FR_LCBR ALGR(KC_4) +#define FR_LBRC ALGR(KC_5) #define FR_PIPE ALGR(KC_6) #define FR_GRV ALGR(KC_7) #define FR_BSLS ALGR(KC_8) #define FR_CIRC ALGR(KC_9) #define FR_AT ALGR(KC_0) -#define FR_RBRK ALGR(FR_RPRN) -#define FR_LBRC ALGR(FR_EQL) +#define FR_RBRC ALGR(FR_RPRN) +#define FR_LCBR ALGR(FR_EQL) #define FR_EURO ALGR(KC_E) #define FR_BULT ALGR(FR_DLR) diff --git a/keyboard/planck/keymap_nordic.h b/keyboard/planck/keymap_nordic.h index fef8c2f5d5..56ae8b63bd 100644 --- a/keyboard/planck/keymap_nordic.h +++ b/keyboard/planck/keymap_nordic.h @@ -44,10 +44,10 @@ #define NO_AT ALGR(KC_2) #define NO_PND ALGR(KC_3) #define NO_DLR ALGR(KC_4) -#define NO_LBRC ALGR(KC_7) -#define NO_LBRK ALGR(KC_8) -#define NO_RBRK ALGR(KC_9) -#define NO_RBRC ALGR(KC_0) +#define NO_LCBR ALGR(KC_7) +#define NO_LBRC ALGR(KC_8) +#define NO_RBRC ALGR(KC_9) +#define NO_RCBR ALGR(KC_0) #define NO_PIPE ALGR(NO_ACUT) #define NO_EURO ALGR(KC_E) diff --git a/keyboard/planck/keymap_spanish.h b/keyboard/planck/keymap_spanish.h new file mode 100644 index 0000000000..50bcb999b1 --- /dev/null +++ b/keyboard/planck/keymap_spanish.h @@ -0,0 +1,62 @@ +#ifndef KEYMAP_SPANISH_H +#define KEYMAP_SPANISH_H + +#include "keymap_common.h" + +// Alt gr +#define ALGR(kc) kc | 0x1400 +#define NO_ALGR KC_RALT + +// Normal characters +#define ES_OVRR KC_GRV +#define ES_APOS KC_MINS +#define ES_IEXL KC_EQL + +#define ES_GRV KC_LBRC +#define ES_PLUS KC_RBRC + +#define ES_NTIL KC_SCLN +#define ES_ACUT KC_QUOT +#define ES_CCED KC_NUHS + +#define ES_LESS KC_NUBS +#define ES_DASH KC_SLSH + +// Shifted characters +#define ES_ASML LSFT(ES_OVRR) +#define ES_QUOT LSFT(KC_2) +#define ES_OVDT LSFT(KC_3) +#define ES_AMPR LSFT(KC_6) +#define ES_SLSH LSFT(KC_7) +#define ES_LPRN LSFT(KC_8) +#define ES_RPRN LSFT(KC_9) +#define ES_EQL LSFT(KC_0) +#define ES_QUES LSFT(ES_APOS) +#define ES_IQUE LSFT(ES_IEXL) + +#define ES_CIRC LSFT(ES_GRV) +#define ES_ASTR LSFT(ES_PLUS) + +#define ES_UMLT LSFT(ES_GRV) + +#define ES_GRTR LSFT(ES_LESS) +#define ES_SCLN LSFT(ES_COMM) +#define ES_COLN LSFT(ES_DOT) +#define ES_UNDS LSFT(ES_DASH) + +// Alt Gr-ed characters +#define ES_BSLS ALGR(ES_OVRR) +#define ES_PIPE ALGR(KC_1) +#define ES_AT ALGR(KC_2) +#define ES_HASH ALGR(KC_3) +#define ES_TILD ALGR(KC_4) +#define ES_EURO ALGR(KC_5) +#define ES_NOT ALGR(KC_6) + +#define ES_LBRC ALGR(ES_GRV) +#define ES_RBRC ALGR(ES_PLUS) + +#define ES_LCBR ALGR(ES_ACUT) +#define ES_RCRB ALGR(ES_CCED) + +#endif
\ No newline at end of file |