summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/keymaps/experimental
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck/keymaps/experimental')
-rw-r--r--keyboards/planck/keymaps/experimental/keymap.c61
1 files changed, 27 insertions, 34 deletions
diff --git a/keyboards/planck/keymaps/experimental/keymap.c b/keyboards/planck/keymaps/experimental/keymap.c
index e0ade650fe..d5c7425439 100644
--- a/keyboards/planck/keymaps/experimental/keymap.c
+++ b/keyboards/planck/keymaps/experimental/keymap.c
@@ -372,39 +372,32 @@ void music_scale_user(void)
#endif
-LEADER_EXTERNS();
-
-void matrix_scan_user(void) {
- LEADER_DICTIONARY() {
- leading = false;
- leader_end();
-
- SEQ_ONE_KEY (KC_R) {
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- tap_random_base64();
- }
- SEQ_ONE_KEY (KC_V) {
- SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
- }
- SEQ_ONE_KEY(KC_F) {
- SEND_STRING("if yes\n\tpeanut butter\nelse\n\trice snacks");
- }
- SEQ_TWO_KEYS(KC_A, KC_S) {
- register_code(KC_H);
- unregister_code(KC_H);
- }
- SEQ_THREE_KEYS(KC_A, KC_S, KC_D) {
- register_code(KC_LGUI);
- register_code(KC_S);
- unregister_code(KC_S);
- unregister_code(KC_LGUI);
- }
+void leader_end_user(void) {
+ if (leader_sequence_one_key(KC_R)) {
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ tap_random_base64();
+ }
+ if (leader_sequence_one_key(KC_V)) {
+ SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
+ }
+ if (leader_sequence_one_key(KC_F)) {
+ SEND_STRING("if yes\n\tpeanut butter\nelse\n\trice snacks");
+ }
+ if (leader_sequence_two_keys(KC_A, KC_S)) {
+ register_code(KC_H);
+ unregister_code(KC_H);
+ }
+ if (leader_sequence_three_keys(KC_A, KC_S, KC_D)) {
+ register_code(KC_LGUI);
+ register_code(KC_S);
+ unregister_code(KC_S);
+ unregister_code(KC_LGUI);
}
}