From acae234753875fcbdc4987212a473040c3816df2 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 5 Aug 2024 13:07:54 +0200 Subject: [PATCH] add dia as hold-tap --- .../skeletyl/keymaps/quotengrote/keymap.c | 18 +++++++++++++++--- keyboards/ferris/keymaps/quotengrote/keymap.c | 18 +++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c index b9ee48912b..4c980ef32b 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c +++ b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c @@ -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; diff --git a/keyboards/ferris/keymaps/quotengrote/keymap.c b/keyboards/ferris/keymaps/quotengrote/keymap.c index f816014b81..04358f3067 100644 --- a/keyboards/ferris/keymaps/quotengrote/keymap.c +++ b/keyboards/ferris/keymaps/quotengrote/keymap.c @@ -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;