qmk-config
qmk configs for my open-source keyboards
git clone https://9o.is/git/qmk-config.git
commit 57bc23db3dbeaa5afb890e3ccfcb7b0b71a8410f parent bd87ea1f020328d61d715bd7645e2109aaaa345d Author: Jul <jul@9o.is> Date: Sun, 12 Oct 2025 21:55:47 -0400 remove unused tap dancing Diffstat:
| M | chocofi/config.h | | | 2 | -- |
| M | chocofi/rules.mk | | | 1 | - |
| M | cygnus/config.h | | | 2 | -- |
| M | cygnus/rules.mk | | | 1 | - |
| M | keymaps/default/keymap.c | | | 111 | +++++++++---------------------------------------------------------------------- |
5 files changed, 12 insertions(+), 105 deletions(-)
diff --git a/chocofi/config.h b/chocofi/config.h @@ -1,8 +1,6 @@ #pragma once #define SOFT_SERIAL_PIN D2 -#define TAPPING_TERM 175 -#define TAPPING_TERM_PER_KEY #define QUICK_TAP_TERM 120 #define PERMISSIVE_HOLD #define ACHORDION_STREAK diff --git a/chocofi/rules.mk b/chocofi/rules.mk @@ -1,7 +1,6 @@ CONVERT_TO=rp2040_ce MOUSEKEY_ENABLE = yes EXTRAKEY_ENABLE = yes -TAP_DANCE_ENABLE = yes CAPS_WORD_ENABLE = yes KEY_OVERRIDE_ENABLE = yes SRC += features/achordion.c diff --git a/cygnus/config.h b/cygnus/config.h @@ -2,8 +2,6 @@ #define SOFT_SERIAL_PIN D2 #define SPLIT_USB_DETECT -#define TAPPING_TERM 175 -#define TAPPING_TERM_PER_KEY #define QUICK_TAP_TERM 120 #define PERMISSIVE_HOLD #define ACHORDION_STREAK diff --git a/cygnus/rules.mk b/cygnus/rules.mk @@ -1,7 +1,6 @@ BOOTLOADER = caterina MOUSEKEY_ENABLE = yes EXTRAKEY_ENABLE = yes -TAP_DANCE_ENABLE = yes CAPS_WORD_ENABLE = yes KEY_OVERRIDE_ENABLE = yes SRC += features/achordion.c diff --git a/keymaps/default/keymap.c b/keymaps/default/keymap.c @@ -50,93 +50,6 @@ uint16_t achordion_streak_chord_timeout( return 175; } -enum { - U_TD_BOOT, - U_TD_U_BASE, - U_TD_U_TAP, - U_TD_U_BUTTON, - U_TD_U_NAV, - U_TD_U_MOUSE, - U_TD_U_MEDIA, - U_TD_U_NUM, - U_TD_U_SYM, - U_TD_U_FUN, -}; - -void u_td_fn_boot(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - // reset_keyboard(); - } -} - -void u_td_fn_U_BASE(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_BASE); - } -} - -void u_td_fn_U_TAP(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_TAP); - } -} - -void u_td_fn_U_BUTTON(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_BUTTON); - } -} - -void u_td_fn_U_NAV(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_NAV); - } -} - -void u_td_fn_U_MOUSE(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_MOUSE); - } -} - -void u_td_fn_U_MEDIA(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_MEDIA); - } -} - -void u_td_fn_U_NUM(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_NUM); - } -} - -void u_td_fn_U_SYM(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_SYM); - } -} - -void u_td_fn_U_FUN(tap_dance_state_t *state, void *user_data) { - if (state->count == 2) { - default_layer_set((layer_state_t)1 << U_FUN); - } -} - -tap_dance_action_t tap_dance_actions[] = { - [U_TD_BOOT] = ACTION_TAP_DANCE_FN(u_td_fn_boot), - [U_TD_U_BASE] = ACTION_TAP_DANCE_FN(u_td_fn_U_BASE), - [U_TD_U_TAP] = ACTION_TAP_DANCE_FN(u_td_fn_U_TAP), - [U_TD_U_BUTTON] = ACTION_TAP_DANCE_FN(u_td_fn_U_BUTTON), - [U_TD_U_NAV] = ACTION_TAP_DANCE_FN(u_td_fn_U_NAV), - [U_TD_U_MOUSE] = ACTION_TAP_DANCE_FN(u_td_fn_U_MOUSE), - [U_TD_U_MEDIA] = ACTION_TAP_DANCE_FN(u_td_fn_U_MEDIA), - [U_TD_U_NUM] = ACTION_TAP_DANCE_FN(u_td_fn_U_NUM), - [U_TD_U_SYM] = ACTION_TAP_DANCE_FN(u_td_fn_U_SYM), - [U_TD_U_FUN] = ACTION_TAP_DANCE_FN(u_td_fn_U_FUN), -}; - - const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [U_BASE] = LAYOUT_split_3x5_3( KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_QUOT, @@ -153,44 +66,44 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), [U_NAV] = LAYOUT_split_3x5_3( - TD(U_TD_BOOT), TD(U_TD_U_TAP), U_NA, TD(U_TD_U_BASE), U_NA, U_RDO, U_PST, U_CPY, U_CUT, U_UND, + U_NA, U_NA, U_NA, U_NA, U_NA, U_RDO, U_PST, U_CPY, U_CUT, U_UND, KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, U_NA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, CW_TOGG, - U_NA, KC_ALGR, TD(U_TD_U_NUM), TD(U_TD_U_NAV), U_NA, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_INS, + U_NA, U_NA, U_NA, U_NA, U_NA, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_INS, U_NA, U_NA, U_NA, KC_ENT, KC_BSPC, KC_DEL ), [U_MOUSE] = LAYOUT_split_3x5_3( - TD(U_TD_BOOT), TD(U_TD_U_TAP), U_NA, TD(U_TD_U_BASE), U_NA, U_RDO, U_PST, U_CPY, U_CUT, U_UND, + U_NA, U_NA, U_NA, U_NA, U_NA, U_RDO, U_PST, U_CPY, U_CUT, U_UND, KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, U_NA, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, U_NU, - U_NA, KC_ALGR, TD(U_TD_U_SYM), TD(U_TD_U_MOUSE), U_NA, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, U_NU, + U_NA, U_NA, U_NA, U_NA, U_NA, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, U_NU, U_NA, U_NA, U_NA, KC_BTN2, KC_BTN1, KC_BTN3 ), [U_MEDIA] = LAYOUT_split_3x5_3( - TD(U_TD_BOOT), TD(U_TD_U_TAP), U_NA, TD(U_TD_U_BASE), U_NA, U_NA, KC_BRID, KC_BRIU, U_NA, U_NA, + U_NA, U_NA, U_NA, U_NA, U_NA, U_NA, KC_BRID, KC_BRIU, U_NA, U_NA, KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, U_NA, KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT, U_NU, - U_NA, KC_ALGR, TD(U_TD_U_FUN), TD(U_TD_U_MEDIA), U_NA, U_NU, U_NU, U_NU, U_NU, OU_AUTO, + U_NA, KC_ALGR, U_NA, U_NA, U_NA, U_NU, U_NU, U_NU, U_NU, OU_AUTO, U_NA, U_NA, U_NA, KC_MSTP, KC_MPLY, KC_MUTE ), [U_NUM] = LAYOUT_split_3x5_3( - KC_LBRC, KC_7, KC_8, KC_9, KC_RBRC, U_NA, TD(U_TD_U_BASE), U_NA, TD(U_TD_U_TAP), TD(U_TD_BOOT), + KC_LBRC, KC_7, KC_8, KC_9, KC_RBRC, U_NA, U_NA, U_NA, U_NA, U_NA, KC_SCLN, KC_4, KC_5, KC_6, KC_EQL, U_NA, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, - KC_GRV, KC_1, KC_2, KC_3, KC_BSLS, U_NA, TD(U_TD_U_NUM), TD(U_TD_U_NAV), KC_ALGR, U_NA, + KC_GRV, KC_1, KC_2, KC_3, KC_BSLS, U_NA, U_NA, U_NA, KC_ALGR, U_NA, KC_DOT, KC_0, KC_MINS, U_NA, U_NA, U_NA ), [U_SYM] = LAYOUT_split_3x5_3( - KC_LCBR, KC_AMPR, KC_ASTR, KC_LPRN, KC_RCBR, U_NA, TD(U_TD_U_BASE), U_NA, TD(U_TD_U_TAP), TD(U_TD_BOOT), + KC_LCBR, KC_AMPR, KC_ASTR, KC_LPRN, KC_RCBR, U_NA, U_NA, U_NA, U_NA, U_NA, KC_COLN, KC_DLR, KC_PERC, KC_CIRC, KC_PLUS, U_NA, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, - KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_PIPE, U_NA, TD(U_TD_U_SYM), TD(U_TD_U_MOUSE), KC_ALGR, U_NA, + KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_PIPE, U_NA, U_NA, U_NA, KC_ALGR, U_NA, KC_LPRN, KC_RPRN, KC_UNDS, U_NA, U_NA, U_NA ), [U_FUN] = LAYOUT_split_3x5_3( - KC_F12, KC_F7, KC_F8, KC_F9, KC_PSCR, U_NA, TD(U_TD_U_BASE), U_NA, TD(U_TD_U_TAP), TD(U_TD_BOOT), + KC_F12, KC_F7, KC_F8, KC_F9, KC_PSCR, U_NA, U_NA, U_NA, U_NA, U_NA, KC_F11, KC_F4, KC_F5, KC_F6, KC_SCRL, U_NA, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, - KC_F10, KC_F1, KC_F2, KC_F3, KC_PAUS, U_NA, TD(U_TD_U_FUN), TD(U_TD_U_MEDIA), KC_ALGR, U_NA, + KC_F10, KC_F1, KC_F2, KC_F3, KC_PAUS, U_NA, U_NA, U_NA, KC_ALGR, U_NA, KC_APP, KC_SPC, KC_TAB, U_NA, U_NA, U_NA ),