skeletyl: tap dances €, @, <tab>

This commit is contained in:
Michael Grote 2024-03-15 15:13:31 +01:00
parent e23f10b7e9
commit ae9c29d286
2 changed files with 29 additions and 11 deletions

View file

@ -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;
}

View file

@ -12,7 +12,7 @@
## ToDo
- tapdances
- ,.- oder autoshift dafür: AUTO_SHIFT_ENABLE = yes
- combos
- kurze keycodes
- led