add dia as hold-tap

This commit is contained in:
Michael Grote 2024-08-05 13:07:54 +02:00
parent abf3c491a7
commit acae234753
2 changed files with 30 additions and 6 deletions

View file

@ -88,8 +88,8 @@ combo_t key_combos[] = {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Buchstaben - white
[0] = LAYOUT_split_3x5_3(
LT(0,KC_Q), LT(0,KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC,
LT(0,KC_A), KC_R, LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LSFT_T(KC_N), LCTL_T(KC_E), KC_I, KC_O,
LT(0,KC_Q), LT(0,KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, LT(0,KC_U), DE_Z, KC_BSPC,
LT(0,KC_A), KC_R, LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LSFT_T(KC_N), LCTL_T(KC_E), KC_I, LT(0,KC_O),
LT(0,DE_Y), LT(0,KC_X), LT(0,KC_C), LSFT_T(KC_D), LT(0,KC_V), KC_K, LSFT_T(KC_H), DE_COMM, DE_DOT, DE_MINS,
XXXXXXX, LT(3, KC_DEL), LT(2, KC_ENT), LT(1, KC_SPC), MO(3), XXXXXXX
),
@ -165,7 +165,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
case LT(0,KC_A):
if (!record->tap.count && record->event.pressed) {
tap_code16(KC_TAB);
tap_code16(DE_ADIA);
return false;
}
return true;
case LT(0,KC_O):
if (!record->tap.count && record->event.pressed) {
tap_code16(DE_ODIA);
return false;
}
return true;
case LT(0,KC_U):
if (!record->tap.count && record->event.pressed) {
tap_code16(DE_UDIA);
return false;
}
return true;

View file

@ -34,8 +34,8 @@ combo_t key_combos[] = {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Buchstaben - white
[0] = LAYOUT_split_3x5_2(
LT(0,KC_Q), LT(0,KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC,
LT(0,KC_A), KC_R, LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LSFT_T(KC_N), LCTL_T(KC_E), KC_I, KC_O,
LT(0,KC_Q), LT(0,KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, LT(0,KC_U), DE_Z, KC_BSPC,
LT(0,KC_A), KC_R, LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LSFT_T(KC_N), LCTL_T(KC_E), KC_I, LT(0,KC_O),
LT(0,DE_Y), LT(0,KC_X), LT(0,KC_C), LSFT_T(KC_D), LT(0,KC_V), KC_K, LSFT_T(KC_H), DE_COMM, DE_DOT, DE_MINS,
LT(3, KC_DEL), LT(2, KC_ENT), LT(1, KC_SPC), MO(3)
),
@ -110,7 +110,19 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
case LT(0,KC_A):
if (!record->tap.count && record->event.pressed) {
tap_code16(KC_TAB);
tap_code16(DE_ADIA);
return false;
}
return true;
case LT(0,KC_O):
if (!record->tap.count && record->event.pressed) {
tap_code16(DE_ODIA);
return false;
}
return true;
case LT(0,KC_U):
if (!record->tap.count && record->event.pressed) {
tap_code16(DE_UDIA);
return false;
}
return true;