QMK/keyboards/betalupi_ergodox/keymaps/default/parts/leader.c

56 lines
1.4 KiB
C
Raw Normal View History

2023-12-19 08:34:06 -08:00
#include "features/leader/beta_leader.h"
2023-12-16 12:27:53 -08:00
2023-12-19 08:34:06 -08:00
BETA_LEADER_EXTERNS();
void beta_leader_start(void) {
2023-12-16 12:27:53 -08:00
ergodox_right_led_3_on();
}
2023-12-19 08:34:06 -08:00
void beta_leader_end(void) {
2023-12-16 12:27:53 -08:00
ergodox_right_led_3_off();
}
2023-12-19 08:34:06 -08:00
bool beta_leader_check(void) {
2023-12-19 09:03:31 -08:00
BETA_SEQ_2_SHORT(KC_E, KC_M) {
2023-12-19 08:34:06 -08:00
SEND_STRING(SECRET_EMAIL);
return false;
}
2023-12-19 09:03:31 -08:00
BETA_SEQ_2_SHORT(KC_G, KC_M) {
2023-12-19 08:34:06 -08:00
SEND_STRING(SECRET_GMAIL);
return false;
}
2023-12-19 09:03:31 -08:00
BETA_SEQ_2_SHORT(KC_L, KC_I) {
2023-12-19 08:34:06 -08:00
SEND_STRING(SECRET_SCHOOL_EMAIL);
return false;
}
BETA_SEQ_2_LONG(KC_K, KC_B) {
layer_move(LAYER_KEYBOARD);
return false;
}
2023-12-19 09:03:31 -08:00
/*
2023-12-19 08:34:06 -08:00
BETA_SEQ_1_SHORT(KC_F) {
// doesn't work, no deactivate
// also, this is slow since laeder key uses dumb logic
2023-12-19 09:03:31 -08:00
set_oneshot_layer(LAYER_FKEYS, ONESHOT_START);
2023-12-19 08:34:06 -08:00
return false;
2022-12-27 13:22:07 -08:00
}
2023-12-19 09:03:31 -08:00
*/
BETA_SEQ_2_SHORT(KC_F, KC_1) { tap_code(KC_F1); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_2) { tap_code(KC_F2); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_3) { tap_code(KC_F3); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_4) { tap_code(KC_F4); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_5) { tap_code(KC_F5); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_Q) { tap_code(KC_F6); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_W) { tap_code(KC_F7); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_E) { tap_code(KC_F8); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_R) { tap_code(KC_F9); return false; }
BETA_SEQ_2_SHORT(KC_F, KC_T) { tap_code(KC_F10); return false; }
2023-12-19 08:34:06 -08:00
return true;
2022-12-27 13:22:07 -08:00
}