Skip to content

Commit

Permalink
add repeat and leader keys
Browse files Browse the repository at this point in the history
  • Loading branch information
raph-rc committed Jul 12, 2024
1 parent 03cc75a commit 71226dc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions keyboards/zsa/voyager/keymaps/raphrc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#define COMBO_TERM 40

#define LEADER_NO_TIMEOUT

#define USB_SUSPEND_WAKEUP_DELAY 0
#undef MOUSEKEY_DELAY
#define MOUSEKEY_DELAY 20
Expand Down
16 changes: 13 additions & 3 deletions keyboards/zsa/voyager/keymaps/raphrc/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const key_override_t **key_overrides = (const key_override_t *[]){

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_voyager(
TO(5), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_MPRV, KC_MNXT, KC_MPLY,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_INSERT,
TO(5), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_MPLY,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, QK_LEAD,
CW_TOGG, MT(MOD_LALT, KC_A),MT(MOD_LGUI, KC_S),MT(MOD_LSFT, KC_D),MT(MOD_LCTL, KC_F),KC_G, KC_H, MT(MOD_RCTL, KC_J),MT(MOD_RSFT, KC_K),MT(MOD_RGUI, KC_L),MT(MOD_RALT, KC_SCLN),KC_QUOTE,
KC_LBRC, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RBRC,
LT(3,KC_BSPC), LT(4,KC_ENTER), LT(2,KC_ESCAPE),LT(1,KC_SPACE)
LT(3,KC_BSPC), LT(4,KC_ENTER), LT(2,QK_REP),LT(1,KC_SPACE)
),
[1] = LAYOUT_voyager(
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
Expand Down Expand Up @@ -169,6 +169,16 @@ bool rgb_matrix_indicators_user(void) {
return true;
}

void leader_start_user(void) {

}

void leader_end_user(void) {
if (leader_sequende_one_key(KC_E)){
SS_TAP("\e");
}
}

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {

Expand Down
1 change: 1 addition & 0 deletions keyboards/zsa/voyager/keymaps/raphrc/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ KEYBOARD_SHARED_EP = yes
SPACE_CADET_ENABLE = no
CAPS_WORD_ENABLE = yes
KEY_OVERRIDE_ENABLE = yes
LEADER_ENABLE = yes

0 comments on commit 71226dc

Please sign in to comment.