summaryrefslogtreecommitdiff
path: root/users/uqs/uqs.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-13 03:19:02 +1100
committerGitHub <noreply@github.com>2023-02-13 03:19:02 +1100
commitbbf7a20b33de2d203518687cb5cd1aa85005ea27 (patch)
treeee1a5c412a02021d085c81a26321c3424eca7022 /users/uqs/uqs.c
parentd10350cd2ceb2b9d80522cdec3ea908118f7fd35 (diff)
Refactor Leader key feature (#19632)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'users/uqs/uqs.c')
-rw-r--r--users/uqs/uqs.c45
1 files changed, 19 insertions, 26 deletions
diff --git a/users/uqs/uqs.c b/users/uqs/uqs.c
index bccab617ac..83733bbe2a 100644
--- a/users/uqs/uqs.c
+++ b/users/uqs/uqs.c
@@ -534,43 +534,36 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
}
#ifdef LEADER_ENABLE
-LEADER_EXTERNS();
-
-void matrix_scan_user(void) {
- LEADER_DICTIONARY() {
- leading = false;
- leader_end();
-
+void leader_end_user(void) {
#ifdef UCIS_ENABLE
- SEQ_ONE_KEY(KC_U) {
- ucis_start();
+ if (leader_sequence_one_key(KC_U)) {
+ ucis_start();
}
#endif
- SEQ_ONE_KEY(KC_H) {
- send_unicode_string("ᕕ( ᐛ )ᕗ"); // happy
+ if (leader_sequence_one_key(KC_H)) {
+ send_unicode_string("ᕕ( ᐛ )ᕗ"); // happy
}
- SEQ_ONE_KEY(KC_D) {
- send_unicode_string("ಠ_ಠ"); // disapproval
+ if (leader_sequence_one_key(KC_D)) {
+ send_unicode_string("ಠ_ಠ"); // disapproval
}
- SEQ_ONE_KEY(KC_L) {
- send_unicode_string("( ͡° ͜ʖ ͡°)"); // lenny
+ if (leader_sequence_one_key(KC_L)) {
+ send_unicode_string("( ͡° ͜ʖ ͡°)"); // lenny
}
- SEQ_ONE_KEY(KC_S) {
- send_unicode_string("¯\\_(ツ)_/¯"); // shrug
+ if (leader_sequence_one_key(KC_S)) {
+ send_unicode_string("¯\\_(ツ)_/¯"); // shrug
}
// tableflip (LEADER - TF)
- SEQ_TWO_KEYS(KC_T, KC_F) {
- //set_unicode_input_mode(UNICODE_MODE_LINUX);
- //send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B");
- send_unicode_string("(╯°□°)╯︵ ┻━┻");
+ if (leader_sequence_two_keys(KC_T, KC_F)) {
+ //set_unicode_input_mode(UNICODE_MODE_LINUX);
+ //send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B");
+ send_unicode_string("(╯°□°)╯︵ ┻━┻");
}
// untableflip
- SEQ_THREE_KEYS(KC_U, KC_T, KC_F) {
- //set_unicode_input_mode(UNICODE_MODE_LINUX);
- //send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B");
- send_unicode_string("┬─┬ノ( º _ ºノ)");
+ if (leader_sequence_three_keys(KC_U, KC_T, KC_F)) {
+ //set_unicode_input_mode(UNICODE_MODE_LINUX);
+ //send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B");
+ send_unicode_string("┬─┬ノ( º _ ºノ)");
}
- }
}
#endif