diff options
| author | Andreas Lindhé <andreas@lindhe.io> | 2017-06-27 14:58:38 +0200 |
|---|---|---|
| committer | Andreas Lindhé <andreas@lindhe.io> | 2017-06-27 15:17:21 +0200 |
| commit | a25dbaad327f834dad6fb572b074bab7be1e1d0f (patch) | |
| tree | 9275a47d336841cb4114874e1008118c5cb8e5b5 /quantum | |
| parent | 61cdc9aaa462afbcbaf57f2c5991e06924caed0e (diff) | |
| download | qmk_firmware-a25dbaad327f834dad6fb572b074bab7be1e1d0f.tar.gz qmk_firmware-a25dbaad327f834dad6fb572b074bab7be1e1d0f.zip | |
Create sv_SE Qwerty layout for ErgoDox
*NOTE:* it might still be desirable to set the software layout to sv_SE in your
OS.
Swedish (sv_SE) Qwerty layout for ErgoDox, based on the Default configuration
I have tried making this as close of a match I could between the [default
ErgoDox EZ configuration](https://ergodox-ez.com/pages/our-firmware) and a
standard Swedish Qwerty layout.
Notable differences from default:
=================================
* There are three special character buttons (acute accent, circumflex/tilde and
apostrophe/asterisk) that don't have any buttons to map to naturally. I've put
these at other places:
* Acute accent (´) can be found in the lower left corner, conveniently
placed to reach for making an é.
* Apostrophe (') was put in the lower left corner, close to acute accent.
* Circumflex (^) and asterisk (*) was placed in the lower right corner.
* Tilde (~) and diaeresis (¨) I couldn't find a good place for, so I left
those out. I could only get the buttons to produce a single one of the
characters. How can I get it to work properly?
* The Alt button on right thumb was exchanged for AltGr (RAlt).
* I changed the backslash in the numpad (layer 1) for a minus. Thought it was
more sensible.
* I didn't find a good place for the "<>|" button, so that one was left out.
That is a problem that really needs to be resolved. Pipe can be found on layer
one, however.
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/keymap_extras/keymap_swedish.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/quantum/keymap_extras/keymap_swedish.h b/quantum/keymap_extras/keymap_swedish.h new file mode 100644 index 000000000..dcfad720d --- /dev/null +++ b/quantum/keymap_extras/keymap_swedish.h | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2017 Andreas Lindhé | ||
| 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 | |||
| 17 | #ifndef KEYMAP_SWEDISH_H | ||
| 18 | #define KEYMAP_SWEDISH_H | ||
| 19 | |||
| 20 | #include "keymap_nordic.h" | ||
| 21 | |||
| 22 | // There are slight differrences in the keyboards in the nordic contries | ||
| 23 | |||
| 24 | // Swedish redifinitions from the nordic keyset | ||
| 25 | #undef NO_AE | ||
| 26 | #define NO_AE KC_QUOT // ä | ||
| 27 | #undef NO_CIRC | ||
| 28 | #define NO_CIRC LSFT(KC_RBRC) // ^ | ||
| 29 | #undef NO_GRV | ||
| 30 | #define NO_GRV LSFT(NO_BSLS) // | ||
| 31 | #undef NO_OSLH | ||
| 32 | #define NO_OSLH KC_SCLN // ö | ||
| 33 | |||
| 34 | // Additional Swedish keys not defined in the nordic keyset | ||
| 35 | #define NO_AA KC_LBRC // å | ||
| 36 | #define NO_ASTR LSFT(KC_BSLS) // * | ||
| 37 | |||
| 38 | // Norwegian unique MAC characters (not vetted for Swedish) | ||
| 39 | #define NO_ACUT_MAC KC_EQL // = | ||
| 40 | #define NO_APOS_MAC KC_NUBS // ' | ||
| 41 | #define NO_AT_MAC KC_BSLS // @ | ||
| 42 | #define NO_BSLS_MAC ALGR(LSFT(KC_7)) // '\' | ||
| 43 | #define NO_DLR_MAC LSFT(KC_4) // $ | ||
| 44 | #define NO_GRV_MAC ALGR(NO_BSLS) // ` | ||
| 45 | #define NO_GRTR_MAC LSFT(KC_GRV) // > | ||
| 46 | #define NO_LCBR_MAC ALGR(LSFT(KC_8)) // } | ||
| 47 | #define NO_LESS_MAC KC_GRV // > | ||
| 48 | #define NO_PIPE_MAC ALGR(KC_7) // | | ||
| 49 | #define NO_RCBR_MAC ALGR(LSFT(KC_9)) // } | ||
| 50 | |||
| 51 | #endif | ||
| 52 | |||
