Added horizon layout
This commit is contained in:
@ -33,5 +33,10 @@ bool beta_leader_check(void) {
|
||||
return false;
|
||||
}
|
||||
|
||||
BETA_SEQ_2_SHORT(KC_H, KC_O) {
|
||||
layer_move(LAYER_HORIZON);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
@ -10,16 +10,6 @@ void td_screenshot(tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
}
|
||||
|
||||
void td_ocr(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(tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
tap_code16(LGUI(KC_COMMA));
|
||||
@ -30,8 +20,19 @@ void td_wmlayout(tap_dance_state_t *state, void *user_data) {
|
||||
}
|
||||
}
|
||||
|
||||
void td_escape(tap_dance_state_t *state, void *user_data) {
|
||||
if (state->count == 1) {
|
||||
tap_code16(KC_ESCAPE);
|
||||
} else if (state->count == 2) {
|
||||
layer_move(LAYER_MAIN);
|
||||
} else {
|
||||
reset_tap_dance(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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),
|
||||
};
|
||||
[TD_ESCAPE] = ACTION_TAP_DANCE_FN(td_escape),
|
||||
};
|
||||
|
Reference in New Issue
Block a user