ff
This commit is contained in:
parent
37e2ee5b60
commit
b92b959377
1 changed files with 13 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
#include "keymap_german.h"
|
||||
|
||||
// layers
|
||||
enum my_layers {
|
||||
enum layers {
|
||||
_BASE,
|
||||
_NUM,
|
||||
_SYM,
|
||||
|
@ -10,7 +10,6 @@ enum my_layers {
|
|||
_MEDIA
|
||||
};
|
||||
|
||||
|
||||
// rgb
|
||||
void keyboard_post_init_user(void) {
|
||||
rgblight_enable_noeeprom(); // Enables RGB, without saving settings
|
||||
|
@ -135,9 +134,9 @@ combo_t key_combos[] = {
|
|||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// white
|
||||
[_BASE] = LAYOUT_planck_mit(
|
||||
KC_ESC, LT(,KC_Q), KC_W, LT(,KC_F), KC_P, KC_B, KC_J, KC_L, LT(_BASE,KC_U), DE_Z, XXXXXXX, KC_BSPC,
|
||||
KC_TAB, LT(,KC_A), KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, LT(,KC_O), KC_ENT,
|
||||
KC_LSFT, LT(,DE_Y), LT(,KC_X), LT(,KC_C), KC_D, LT(,KC_V), KC_K, KC_H, DE_COMM, DE_DOT, DE_MINS, DE_HASH,
|
||||
KC_ESC, LT(_BASE,KC_Q), KC_W, LT(_BASE,KC_F), KC_P, KC_B, KC_J, KC_L, LT(_BASE,KC_U), DE_Z, XXXXXXX, KC_BSPC,
|
||||
KC_TAB, LT(_BASE,KC_A), KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, LT(_BASE,KC_O), KC_ENT,
|
||||
KC_LSFT, LT(_BASE,DE_Y), LT(_BASE,KC_X), LT(_BASE,KC_C), KC_D, LT(_BASE,KC_V), KC_K, KC_H, DE_COMM, DE_DOT, DE_MINS, DE_HASH,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_DEL, MO(_SYM), LT(_MOV, KC_SPC), MO(_NUM), KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT
|
||||
),
|
||||
// orange
|
||||
|
@ -174,55 +173,55 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
// "Tap and Hold"
|
||||
case LT(,KC_X): // "LT(,KC_X)" is the keycode that must be mapped
|
||||
case LT(_BASE,KC_X): // "LT(_BASE,KC_X)" is the keycode that must be mapped
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(LCTL(KC_X)); // Intercept hold function to send Ctrl-X
|
||||
return false;
|
||||
}
|
||||
return true; // Return true for normal processing of tap keycode
|
||||
case LT(,DE_Y):
|
||||
case LT(_BASE,DE_Y):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(DE_PIPE);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_C):
|
||||
case LT(_BASE,KC_C):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(LCTL(KC_C));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_V):
|
||||
case LT(_BASE,KC_V):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(LCTL(KC_V));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_Q):
|
||||
case LT(_BASE,KC_Q):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(RALT(KC_Q));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_F):
|
||||
case LT(_BASE,KC_F):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(RALT(KC_E));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_A):
|
||||
case LT(_BASE,KC_A):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(DE_ADIA);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_O):
|
||||
case LT(_BASE,KC_O):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(DE_ODIA);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case LT(,KC_U):
|
||||
case LT(_BASE,KC_U):
|
||||
if (!record->tap.count && record->event.pressed) {
|
||||
tap_code16(DE_UDIA);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue