Bump to latest QMK, cleanup
This commit is contained in:
35
keyboards/betalupi_ergodox/keymaps/default/parts/leader.c
Normal file
35
keyboards/betalupi_ergodox/keymaps/default/parts/leader.c
Normal file
@ -0,0 +1,35 @@
|
||||
LEADER_EXTERNS();
|
||||
void leader_start(void) { ergodox_right_led_3_on(); }
|
||||
void leader_end(void) { ergodox_right_led_3_off(); }
|
||||
void matrix_scan_user(void) {
|
||||
LEADER_DICTIONARY() {
|
||||
leading = false;
|
||||
leader_end();
|
||||
|
||||
SEQ_TWO_KEYS(KC_E, KC_M) {
|
||||
SEND_STRING(SECRET_EMAIL);
|
||||
}
|
||||
|
||||
SEQ_TWO_KEYS(KC_G, KC_M) {
|
||||
SEND_STRING(SECRET_GMAIL);
|
||||
}
|
||||
|
||||
SEQ_TWO_KEYS(KC_L, KC_I) {
|
||||
SEND_STRING(SECRET_SCHOOL_EMAIL);
|
||||
}
|
||||
|
||||
|
||||
SEQ_TWO_KEYS(KC_P, KC_L) {
|
||||
layer_move(LAYER_PLAIN);
|
||||
}
|
||||
|
||||
//SEQ_ONE_KEY(KC_F) {}
|
||||
//
|
||||
//SEQ_TWO_KEYS(KC_A, KC_S) {
|
||||
// register_code(KC_LGUI);
|
||||
// register_code(KC_S);
|
||||
// unregister_code(KC_S);
|
||||
// unregister_code(KC_LGUI);
|
||||
//}
|
||||
}
|
||||
}
|
37
keyboards/betalupi_ergodox/keymaps/default/parts/tapdance.c
Normal file
37
keyboards/betalupi_ergodox/keymaps/default/parts/tapdance.c
Normal file
@ -0,0 +1,37 @@
|
||||
void td_screenshot(qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
tap_code16(KC_PSCR);
|
||||
} else if (state->count == 2) {
|
||||
tap_code16(LSFT(KC_PSCR));
|
||||
} else if (state->count == 3) {
|
||||
tap_code16(LALT(KC_PSCR));
|
||||
} else {
|
||||
reset_tap_dance(state);
|
||||
}
|
||||
}
|
||||
|
||||
void td_ocr(qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
tap_code16(LCTL(KC_PSCR));
|
||||
} else if (state->count == 2) {
|
||||
tap_code16(LCTL(LSFT(KC_PSCR)));
|
||||
} else {
|
||||
reset_tap_dance(state);
|
||||
}
|
||||
}
|
||||
|
||||
void td_wmlayout(qk_tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
tap_code16(LGUI(KC_COMMA));
|
||||
} else if (state->count == 2) {
|
||||
tap_code16(LGUI(KC_DOT));
|
||||
} else {
|
||||
reset_tap_dance(state);
|
||||
}
|
||||
}
|
||||
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
[TD_WMLAYOUT] = ACTION_TAP_DANCE_FN(td_wmlayout),
|
||||
[TD_SCREENSHOT] = ACTION_TAP_DANCE_FN(td_screenshot),
|
||||
[TD_OCR] = ACTION_TAP_DANCE_FN(td_ocr),
|
||||
};
|
Reference in New Issue
Block a user