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"
|
#include "keymap_german.h"
|
||||||
|
|
||||||
// layers
|
// layers
|
||||||
enum my_layers {
|
enum layers {
|
||||||
_BASE,
|
_BASE,
|
||||||
_NUM,
|
_NUM,
|
||||||
_SYM,
|
_SYM,
|
||||||
|
@ -10,7 +10,6 @@ enum my_layers {
|
||||||
_MEDIA
|
_MEDIA
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// rgb
|
// rgb
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
rgblight_enable_noeeprom(); // Enables RGB, without saving settings
|
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] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
// white
|
// white
|
||||||
[_BASE] = LAYOUT_planck_mit(
|
[_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_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(,KC_A), KC_R, KC_S, KC_T, KC_G, KC_M, KC_N, KC_E, KC_I, LT(,KC_O), KC_ENT,
|
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(,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_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
|
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
|
// orange
|
||||||
|
@ -174,55 +173,55 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
// "Tap and Hold"
|
// "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) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(LCTL(KC_X)); // Intercept hold function to send Ctrl-X
|
tap_code16(LCTL(KC_X)); // Intercept hold function to send Ctrl-X
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true; // Return true for normal processing of tap keycode
|
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) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(DE_PIPE);
|
tap_code16(DE_PIPE);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_C):
|
case LT(_BASE,KC_C):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(LCTL(KC_C));
|
tap_code16(LCTL(KC_C));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_V):
|
case LT(_BASE,KC_V):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(LCTL(KC_V));
|
tap_code16(LCTL(KC_V));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_Q):
|
case LT(_BASE,KC_Q):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(RALT(KC_Q));
|
tap_code16(RALT(KC_Q));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_F):
|
case LT(_BASE,KC_F):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(RALT(KC_E));
|
tap_code16(RALT(KC_E));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_A):
|
case LT(_BASE,KC_A):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(DE_ADIA);
|
tap_code16(DE_ADIA);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_O):
|
case LT(_BASE,KC_O):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(DE_ODIA);
|
tap_code16(DE_ODIA);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case LT(,KC_U):
|
case LT(_BASE,KC_U):
|
||||||
if (!record->tap.count && record->event.pressed) {
|
if (!record->tap.count && record->event.pressed) {
|
||||||
tap_code16(DE_UDIA);
|
tap_code16(DE_UDIA);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue