removed defect combo and added chordal hold
This commit is contained in:
parent
c8f3db8812
commit
7eeb98301d
4 changed files with 27 additions and 18 deletions
|
|
@ -40,6 +40,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define KC_MB1 KC_MS_BTN1
|
#define KC_MB1 KC_MS_BTN1
|
||||||
#define KC_MB2 KC_MS_BTN2
|
#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] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/* Base (qwerty)
|
/* 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,
|
UI_UE,
|
||||||
LSEMI_APOSTROPHE,
|
LSEMI_APOSTROPHE,
|
||||||
QW_DESKTOPLEFT,
|
QW_DESKTOPLEFT,
|
||||||
ER_DESKTOPORIGHT,
|
ER_DESKTOPORIGHT
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint16_t PROGMEM combo_ae[] = {KC_A, KC_S, COMBO_END};
|
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),
|
[OP_OE] = COMBO_ACTION(combo_oe),
|
||||||
[UI_UE] = COMBO_ACTION(combo_ue),
|
[UI_UE] = COMBO_ACTION(combo_ue),
|
||||||
[LSEMI_APOSTROPHE] = COMBO_ACTION(combo_apostrophe),
|
[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) */
|
/* 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);
|
tap_code16(KC_QUOT);
|
||||||
}
|
}
|
||||||
break;
|
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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
COMBO_ENABLE = yes
|
||||||
|
|
|
||||||
3
users/thecount/config.h
Normal file
3
users/thecount/config.h
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#define PERMISSIVE_HOLD
|
||||||
|
#define CHORDAL_HOLD
|
||||||
|
#define TAPPING_TERM 250
|
||||||
Loading…
Add table
Add a link
Reference in a new issue