wip chocofi keymap for german layout (in OS)

Signed-off-by: Frieder Schlesier <frieder@fschl.de>
This commit is contained in:
Frieder Schlesier 2023-09-05 22:20:49 +02:00
parent 9578068fe2
commit 3184060b4a
1 changed files with 35 additions and 34 deletions

View File

@ -1,38 +1,39 @@
/* /*
Copyright 2019 @foostan Copyright 2019 @foostan
Copyright 2020 Drashna Jaelre <@drashna> Copyright 2020 Drashna Jaelre <@drashna>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
todo TODO
ctrl,shift, alt, - ctrl,shift, alt, add shift for right hand
test better enter keys
https://docs.qmk.fm/#/keycodes https://docs.qmk.fm/#/keycodes
https://docusaurus.qmk.fm/feature_layers/ https://docusaurus.qmk.fm/feature_layers/
use LT(layer, kc) - momentarily activates layer when held, and sends kc when tapped. use LT(layer, kc) - momentarily activates layer when held, and sends kc when tapped.
this seems like a great example of composed layers and support for different environments this seems like a great example of composed layers and support for different environments
https://github.com/0x64746b/qmk_firmware/blob/chocofi/keyboards/chocofi/keymaps/dtk35/keymap.c https://github.com/0x64746b/qmk_firmware/blob/chocofi/keyboards/chocofi/keymaps/dtk35/keymap.c
TODO - add support for umlauts
rshift: tap => toggle alpha/nav layer, https://mechanische-tastaturen.net/qmk-und-via-guide/qmk-via-keycodes-fuer-deutsche-zeichen/
use the 'free' enter hold for rctrl and the hold on esc for lalt https://github.com/qmk/qmk_firmware/blob/master/layouts/community/ergodox/german-kinergo/keymap.c#L101
https://github.com/qmk/qmk_firmware/blob/master/layouts/community/ergodox/german-kinergo/keymap.c
*/ */
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "keymap_german.h"
// Layer declarations // Layer declarations
enum { enum {
@ -46,24 +47,24 @@ enum {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[COLEMAK] = LAYOUT_split_3x5_3( [COLEMAK] = LAYOUT_split_3x5_3(
KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_BSPC, KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC,
KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O, KC_A, KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, KC_O,
KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH, DE_Y, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, DE_COMM, DE_DOT, DE_SLSH,
LSFT_T(KC_DEL), LT(NAV_FN, KC_SPC), LGUI_T(KC_TAB), CTL_T(KC_ESC), LT(NUM_SYM, KC_ENT), TG(NAV_FN) LSFT_T(KC_DEL), LT(NAV_FN, KC_SPC), LGUI_T(KC_TAB), CTL_T(KC_ESC), LT(NUM_SYM, KC_ENT), TG(NAV_FN)
), ),
[NAV_FN] = LAYOUT_split_3x5_3( [NAV_FN] = LAYOUT_split_3x5_3(
KC_1, KC_F7, KC_F8, KC_F9, KC_F10, KC_PGUP, KC_HOME, KC_8, KC_END, KC_BSPC, XXXXXXX, KC_F7, KC_F8, KC_F9, KC_F10, XXXXXXX, KC_HOME, KC_END, XXXXXXX, KC_BSPC,
XXXXXXX, KC_F4, KC_F5, KC_F6, KC_F11, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_DEL, KC_LALT, KC_F4, KC_F5, KC_F6, KC_F11, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_DEL,
XXXXXXX, KC_F1, KC_F2, KC_F3, KC_F12, KC_PGDN, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX, DE_TILD, KC_F1, KC_F2, KC_F3, KC_F12, XXXXXXX, KC_PGDN, KC_PGUP, XXXXXXX, XXXXXXX,
_______, _______, _______, _______, _______, _______ _______, _______, _______, _______, _______, _______
), ),
[NUM_SYM] = LAYOUT_split_3x5_3( [NUM_SYM] = LAYOUT_split_3x5_3(
KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_7, KC_8, KC_9, KC_PLUS, DE_EXLM, DE_DQUO, DE_QUES, DE_PERC, DE_DLR, DE_CIRC, KC_7, KC_8, KC_9, DE_PLUS,
KC_LT, KC_LCBR, KC_LPRN, KC_LBRC, XXXXXXX, KC_MINS, KC_4, KC_5, KC_6, KC_MINUS, DE_LABK, DE_LCBR, DE_LPRN, DE_LBRC, DE_QUOT, DE_ASTR, KC_4, KC_5, KC_6, DE_MINS,
KC_GT, KC_RCBR, KC_RPRN, KC_RBRC, XXXXXXX, KC_UNDS, KC_1, KC_2, KC_3, KC_PIPE, DE_RABK, DE_RCBR, DE_RPRN, DE_RBRC, DE_HASH, KC_0, KC_1, KC_2, KC_3, DE_EQL,
_______, _______, _______, _______, _______, _______ DE_PIPE, DE_AMPR, DE_AT, _______, _______, _______
) )
}; };