aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoseschmiedel <58808540+moseschmiedel@users.noreply.github.com>2020-01-29 16:17:45 +0100
committerGitHub <noreply@github.com>2020-01-29 10:17:45 -0500
commit7149557bb48a488f86f2f6da79bf4b88a0ed8222 (patch)
tree85cb8c521e02f00aba25fd52ab0005f8ee2d5fdd
parent2abc0e17e7142f058b39998e16d0896286bd8e1f (diff)
downloadqmk_firmware-7149557bb48a488f86f2f6da79bf4b88a0ed8222.tar.gz
qmk_firmware-7149557bb48a488f86f2f6da79bf4b88a0ed8222.zip
Add German programming layout for Lets Split (#8014)
* Add German programming layout for Lets Split * Update copyright in config.h * Add Hash-Symbol to keymap * Change to fit suggestions in PR * Changes as requested, but broken. * Fix layer switching issue
-rw-r--r--keyboards/lets_split/keymaps/DE_programming/config.h28
-rw-r--r--keyboards/lets_split/keymaps/DE_programming/keymap.c97
-rw-r--r--keyboards/lets_split/keymaps/DE_programming/readme.md57
-rw-r--r--keyboards/lets_split/keymaps/DE_programming/rules.mk0
4 files changed, 182 insertions, 0 deletions
diff --git a/keyboards/lets_split/keymaps/DE_programming/config.h b/keyboards/lets_split/keymaps/DE_programming/config.h
new file mode 100644
index 000000000..145be1422
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_programming/config.h
@@ -0,0 +1,28 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2020 Mose Schmiedel <mose.schmiedel@web.de>
5
6This program is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18*/
19#pragma once
20
21/* Use I2C or Serial, not both */
22#define USE_SERIAL
23// #define USE_I2C
24
25/* Select hand configuration */
26#define MASTER_LEFT
27// #define MASTER_RIGHT
28// #define EE_HANDS
diff --git a/keyboards/lets_split/keymaps/DE_programming/keymap.c b/keyboards/lets_split/keymaps/DE_programming/keymap.c
new file mode 100644
index 000000000..32231f883
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_programming/keymap.c
@@ -0,0 +1,97 @@
1#include QMK_KEYBOARD_H
2#include "keymap_german.h"
3
4// Each layer gets a name for readability, which is then used in the keymap matrix below.
5// The underscores don't mean anything - you can have a layer called STUFF or any other name.
6// Layer names don't all need to be of the same length, obviously, and you can also skip them
7// entirely and just use numbers.
8enum layers {
9 _QWERTZ,
10 _LOWER,
11 _RAISE,
12 _ADJUST,
13};
14
15#define LOWER MO(_LOWER)
16#define RAISE MO(_RAISE)
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19
20/* Qwertz
21 * ,-----------------------------------------------------------------------------------.
22 * | Tab | Q | W | E | R | T | Z | U | I | O | P | Bksp |
23 * |------+------+------+------+------+-------------+------+------+------+------+------|
24 * | Esc | A | S | D | F | G | H | J | K | L | + |Enter |
25 * |------+------+------+------+------+------|------+------+------+------+------+------|
26 * | Shift| Y | X | C | V | B | N | M | , | . | - |Shift |
27 * |------+------+------+------+------+------+------+------+------+------+------+------|
28 * | Ctrl | GUI | AltGr| Alt |Lower |Space | Space| Raise| Left | Down | Up |Right |
29 * `-----------------------------------------------------------------------------------'
30 */
31[_QWERTZ] = LAYOUT(
32 KC_TAB, DE_Q, DE_W, DE_E, DE_R, DE_T, DE_Z, DE_U, DE_I, DE_O, DE_P, KC_BSPC,
33 KC_ESC, DE_A, DE_S, DE_D, DE_F, DE_G, DE_H, DE_J, DE_K, DE_L, DE_PLUS, KC_ENT,
34 KC_LSFT, DE_Y, DE_X, DE_C, DE_V, DE_B, DE_N, DE_M, DE_COMM, DE_DOT, DE_MINS, KC_RSFT,
35 KC_LCTL, KC_LGUI, KC_ALGR, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
36),
37
38/* Lower
39 * ,-----------------------------------------------------------------------------------.
40 * | ° | ! | ? | § | € | ~ | $ | ( | ) | < | > | Bksp |
41 * |------+------+------+------+------+-------------+------+------+------+------+------|
42 * | Del | Vol+ | Prev | Next | Play | & | @ | { | } | [ | ] |Enter |
43 * |------+------+------+------+------+------|------+------+------+------+------+------|
44 * | Shift| Vol- | | | | | | % | / | \ | ' | " |Shift |
45 * |------+------+------+------+------+------+------+------+------+------+------+------|
46 * | Ctrl | | | |Lower | | Raise| = | * | | |
47 * `-----------------------------------------------------------------------------------'
48 */
49[_LOWER] = LAYOUT(
50 DE_CIRC, DE_EXLM, DE_QST, DE_PARA, DE_EURO, DE_TILD, DE_DLR, DE_LPRN, DE_RPRN, DE_LESS, DE_MORE, KC_BSPC,
51 KC_DEL, KC_VOLU, KC_MPRV, KC_MNXT, KC_MPLY, DE_AMPR, DE_AT, DE_LCBR, DE_RCBR, DE_LBRC, DE_RBRC, KC_ENT,
52 KC_LSFT, KC_VOLD, _______, _______, _______, DE_PIPE, DE_PERC, DE_SLSH, DE_BSLS, DE_QUOT, DE_DQOT, KC_RSFT,
53 KC_LCTL, _______, _______, _______, _______, _______, _______, _______, DE_EQL, DE_ASTR, _______, _______
54),
55
56/* Raise
57 * ,-----------------------------------------------------------------------------------.
58 * | / | 7 | 8 | 9 | * | | | | # | Alt | ` | Bksp |
59 * |------+------+------+------+------+-------------+------+------+------+------+------|
60 * | Del | 4 | 5 | 6 | - | Pos1 | End | ä | ö | ü | ß |Enter |
61 * |------+------+------+------+------+------|------+------+------+------+------+------|
62 * | Shift| 1 | 2 | 3 | + |PageUp|PageDn| | | | |Shift |
63 * |------+------+------+------+------+------+------+------+------+------+------+------|
64 * | | . | 0 | = |Lower | | Raise| | | | |
65 * `-----------------------------------------------------------------------------------'
66 */
67[_RAISE] = LAYOUT(
68 DE_SLSH, KC_7, KC_8, KC_9, DE_ASTR, _______, _______, _______, DE_HASH, KC_LALT, DE_ACUT, KC_BSPC,
69 KC_DEL, KC_4, KC_5, KC_6, DE_MINS, KC_HOME, KC_END, DE_AE, DE_OE, DE_UE, DE_SS, KC_ENT,
70 KC_LSFT, KC_1, KC_2, KC_3, DE_PLUS, KC_PGUP, KC_PGDN, _______, _______, _______, _______, KC_LSFT,
71 _______, DE_DOT, KC_0, DE_EQL, _______, _______, _______, _______, _______, _______, _______, _______
72),
73
74/* Adjust (Lower + Raise)
75 * ,-----------------------------------------------------------------------------------.
76 * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
77 * |------+------+------+------+------+-------------+------+------+------+------+------|
78 * | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | F21 | F22 | F23 | F24 |
79 * |------+------+------+------+------+------|------+------+------+------+------+------|
80 * | | | |Aud on|Audoff|AGnorm|AGswap| | | | | |
81 * |------+------+------+------+------+------+------+------+------+------+------+------|
82 * | | | | | | | | | | | |
83 * `-----------------------------------------------------------------------------------'
84 */
85[_ADJUST] = LAYOUT(
86 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
87 KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24,
88 _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
89 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
90)
91
92
93};
94
95layer_state_t layer_state_set_user(layer_state_t state) {
96 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
97}
diff --git a/keyboards/lets_split/keymaps/DE_programming/readme.md b/keyboards/lets_split/keymaps/DE_programming/readme.md
new file mode 100644
index 000000000..38e54609b
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_programming/readme.md
@@ -0,0 +1,57 @@
1De_Programming Keymap
2======
3
4Features
5--------
6
7Changed Keymap to resemble German Layout. Optimized for Programming
8
9Layout
10--------
11
12 Qwertz
13 ,-----------------------------------------------------------------------------------.
14 | Tab | Q | W | E | R | T | Z | U | I | O | P | Bksp |
15 |------+------+------+------+------+-------------+------+------+------+------+------|
16 | Esc | A | S | D | F | G | H | J | K | L | + |Enter |
17 |------+------+------+------+------+------|------+------+------+------+------+------|
18 | Shift| Y | X | C | V | B | N | M | , | . | - |Shift |
19 |------+------+------+------+------+------+------+------+------+------+------+------|
20 | Ctrl | GUI | AltGr| Alt |Lower |Space |Space |Raise | Left | Down | Up |Right |
21 `-----------------------------------------------------------------------------------'
22
23
24 Lower
25 ,-----------------------------------------------------------------------------------.
26 | ° | ! | ? | § | € | ~ | $ | ( | ) | < | > | Bksp |
27 |------+------+------+------+------+-------------+------+------+------+------+------|
28 | Del | F1 | F2 | F3 | F4 | & | @ | { | } | [ | ] |Enter |
29 |------+------+------+------+------+------|------+------+------+------+------+------|
30 | Shift| F5 | F6 | F7 | F8 | | | % | / | \ | ' | " |Shift |
31 |------+------+------+------+------+------+------+------+------+------+------+------|
32 | Ctrl | F9 | F10 | F11 | F12 | | Prev | Next | Vol- | Vol+ | Play |
33 `-----------------------------------------------------------------------------------'
34
35
36 Raise
37 ,-----------------------------------------------------------------------------------.
38 | / | 7 | 8 | 9 | * | | | | # | Alt | ` | Bksp |
39 |------+------+------+------+------+-------------+------+------+------+------+------|
40 | Del | 4 | 5 | 6 | - | Pos1 | End | ä | ö | ü | ß |Enter |
41 |------+------+------+------+------+------|------+------+------+------+------+------|
42 | Shift| 1 | 2 | 3 | + |PageUp|PageDn| | | | |Shift |
43 |------+------+------+------+------+------+------+------+------+------+------+------|
44 | | . | 0 | = | Enter| | Prev | Next | Vol- | Vol+ | Play |
45 `-----------------------------------------------------------------------------------'
46
47
48 Adjust (Lower + Raise)
49 ,-----------------------------------------------------------------------------------.
50 | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | F21 | F22 | F23 | F24 |
51 |------+------+------+------+------+-------------+------+------+------+------+------|
52 | | | |Aud on|Audoff|AGnorm|AGswap|Qwertz| | | | |
53 |------+------+------+------+------+------|------+------+------+------+------+------|
54 | | | | | | | | | | | | |
55 |------+------+------+------+------+------+------+------+------+------+------+------|
56 | | | | | | | | | | | |
57 `-----------------------------------------------------------------------------------'
diff --git a/keyboards/lets_split/keymaps/DE_programming/rules.mk b/keyboards/lets_split/keymaps/DE_programming/rules.mk
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_programming/rules.mk