Skip to content

Commit

Permalink
Allow some same-hand commands in achordion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Nye committed Aug 28, 2024
1 parent 3a86b3c commit dbd67d0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions users/mnye/mnye.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,32 @@ bool achordion_chord(uint16_t tap_hold_keycode,
keyrecord_t* tap_hold_record,
uint16_t other_keycode,
keyrecord_t* other_record) {
// Always allow chording with space:
if (other_keycode == KC_SPC) {
return true;
}

// Allow specific shortcuts with left hand.
switch (tap_hold_keycode) {
case LGUI_T(KC_A): {
switch (other_keycode) {
case KC_X:
case KC_C:
case KC_V:
case KC_W: return true;
default: break;
}
}
case LCTL_T(KC_R): {
switch (other_keycode) {
case KC_C: return true;
case KC_D: return true;
default: break;
}
}
default: break;
}

return achordion_opposite_hands(tap_hold_record, other_record);
}

Expand Down

0 comments on commit dbd67d0

Please sign in to comment.