From 7eeb98301d1573c26f31210908e75d538b376c51 Mon Sep 17 00:00:00 2001 From: thecount Date: Fri, 11 Apr 2025 15:16:02 +0200 Subject: [PATCH] removed defect combo and added chordal hold --- .../4x5/keymaps/thecount/keymap.c | 32 ++++++++----------- .../4x5/keymaps/thecount/rules.mk | 10 ++++++ users/.keep | 0 users/thecount/config.h | 3 ++ 4 files changed, 27 insertions(+), 18 deletions(-) delete mode 100644 users/.keep create mode 100644 users/thecount/config.h diff --git a/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/keymap.c b/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/keymap.c index cf8ef90..373fd85 100644 --- a/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/keymap.c +++ b/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/keymap.c @@ -40,6 +40,18 @@ along with this program. If not, see . #define KC_MB1 KC_MS_BTN1 #define KC_MB2 KC_MS_BTN2 +// clang-format off +const char chordal_hold_layout[MATRIX_ROWS][MATRIX_COLS] PROGMEM = + LAYOUT( + 'L', 'L', 'L', 'L', 'L', 'R', 'R', 'R', 'R', 'R', + 'L', 'L', 'L', 'L', 'L', 'R', 'R', 'R', 'R', 'R', + 'L', 'L', 'L', 'L', 'L', 'R', 'R', 'R', 'R', 'R', + 'L', 'L', 'R', 'R', + 'L', 'L', 'R', 'R', + 'L', 'L', 'R', 'R', + 'L', 'L', 'R', 'R' + ); + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Base (qwerty) * ,----------------------------------, ,----------------------------------, @@ -131,7 +143,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______ ) }; - +// clang-format on @@ -142,7 +154,7 @@ enum combo_events { UI_UE, LSEMI_APOSTROPHE, QW_DESKTOPLEFT, - ER_DESKTOPORIGHT, + ER_DESKTOPORIGHT }; const uint16_t PROGMEM combo_ae[] = {KC_A, KC_S, COMBO_END}; @@ -157,8 +169,6 @@ combo_t key_combos[] = { [OP_OE] = COMBO_ACTION(combo_oe), [UI_UE] = COMBO_ACTION(combo_ue), [LSEMI_APOSTROPHE] = COMBO_ACTION(combo_apostrophe), - [QW_DESKTOPLEFT] = COMBO_ACTION(combo_desktopleft), - [ER_DESKTOPORIGHT] = COMBO_ACTION(combo_desktopright), }; /* COMBO_ACTION(x) is same as COMBO(x, KC_NO) */ @@ -184,19 +194,5 @@ void process_combo_event(uint16_t combo_index, bool pressed) { tap_code16(KC_QUOT); } break; - case QW_DESKTOPLEFT: - if (pressed) { - tap_code16(KC_LCTL); - tap_code16(KC_LGUI); - tap_code16(KC_LEFT); - } - break; - case ER_DESKTOPORIGHT: - if (pressed) { - tap_code16(KC_LCTL); - tap_code16(KC_LGUI); - tap_code16(KC_RGHT); - } - break; } } diff --git a/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/rules.mk b/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/rules.mk index ab1e438..d550a5b 100644 --- a/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/rules.mk +++ b/keyboards/handwired/dactyl_manuform/4x5/keymaps/thecount/rules.mk @@ -1 +1,11 @@ +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +MOUSEKEY_ENABLE = yes # Mouse keys +EXTRAKEY_ENABLE = yes # Audio control and System control +CONSOLE_ENABLE = no # Console for debug +COMMAND_ENABLE = yes # Commands for debug and configuration +NKRO_ENABLE = yes # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output +SPLIT_KEYBOARD = yes COMBO_ENABLE = yes diff --git a/users/.keep b/users/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/users/thecount/config.h b/users/thecount/config.h new file mode 100644 index 0000000..6c42e7a --- /dev/null +++ b/users/thecount/config.h @@ -0,0 +1,3 @@ +#define PERMISSIVE_HOLD +#define CHORDAL_HOLD +#define TAPPING_TERM 250