From ae9c29d28642135a98be5b3b3276d22d98211c10 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 15 Mar 2024 15:13:31 +0100 Subject: [PATCH] =?UTF-8?q?skeletyl:=20tap=20dances=20=E2=82=AC,=20@,=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skeletyl/keymaps/quotengrote/keymap.c | 38 ++++++++++++++----- .../skeletyl/keymaps/quotengrote/readme.md | 2 +- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c index 843c68af78..961a4135cf 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c +++ b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c @@ -4,10 +4,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { // Buchstaben [0] = LAYOUT_split_3x5_3( - KC_Q, LGUI(KC_W), KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC, - KC_A, LALT_T(KC_R), LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LCTL_T(KC_N), LSFT_T(KC_E), LALT_T(KC_I), KC_O, - DE_Y, LT(0,KC_X), KC_C, LSFT_T(KC_D), KC_V, KC_K, LSFT_T(KC_H), DE_COMM, DE_DOT, DE_MINS, - LT(3, KC_DEL), LT(2, KC_ENT), XXXXXXX, XXXXXXX, LT(1, KC_SPC), OSL(3) + LT(0,KC_Q), LGUI(KC_W), LT(0,KC_F), KC_P, KC_B, KC_J, KC_L, KC_U, DE_Z, KC_BSPC, + LT(0,KC_A), LALT_T(KC_R), LCTL_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, LCTL_T(KC_N), LSFT_T(KC_E), LALT_T(KC_I), KC_O, + 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), XXXXXXX, XXXXXXX, LT(1, KC_SPC), OSL(3) ), // Zahlen [1] = LAYOUT_split_3x5_3( @@ -42,24 +42,42 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { // https://github.com/qmk/qmk_firmware/blob/master/docs/mod_tap.md#changing-hold-function bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { - case LT(0,KC_X): + case LT(0,KC_X): // "LT(0,KC_X)" is the keycode that must be mapped if (!record->tap.count && record->event.pressed) { tap_code16(C(KC_X)); // Intercept hold function to send Ctrl-X return false; } - return true; // Return true for normal processing of tap keycode + return true; // Return true for normal processing of tap keycode case LT(0,KC_C): if (!record->tap.count && record->event.pressed) { - tap_code16(C(KC_C)); // Intercept hold function to send Ctrl-C + tap_code16(C(KC_C)); return false; } - return true; // Return true for normal processing of tap keycode + return true; case LT(0,KC_V): if (!record->tap.count && record->event.pressed) { - tap_code16(C(KC_V)); // Intercept hold function to send Ctrl-V + tap_code16(C(KC_V)); return false; } - return true; // Return true for normal processing of tap keycode + return true; + case LT(0,KC_Q): + if (!record->tap.count && record->event.pressed) { + tap_code16(KC_RALT(KC_Q)); + return false; + } + return true; + case LT(0,KC_F): + if (!record->tap.count && record->event.pressed) { + tap_code16(KC_RALT(KC_E)); + return false; + } + return true; + case LT(0,KC_A): + if (!record->tap.count && record->event.pressed) { + tap_code16(KC_TAB)); + return false; + } + return true; } return true; } diff --git a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/readme.md b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/readme.md index 3e01e74773..59fdcd220e 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/readme.md +++ b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/readme.md @@ -12,7 +12,7 @@ ## ToDo -- tapdances +- ,.- oder autoshift dafür: AUTO_SHIFT_ENABLE = yes - combos - kurze keycodes - led