summaryrefslogtreecommitdiffstats
path: root/keyboards/kprepublic/bm65hsrgb_iso/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kprepublic/bm65hsrgb_iso/keymaps')
-rw-r--r--keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c37
1 files changed, 14 insertions, 23 deletions
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c b/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
index 8b59f9de4f..03d1ddabed 100644
--- a/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
+++ b/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
@@ -23,7 +23,7 @@ enum {
};
// Tap Dance definitions
-qk_tap_dance_action_t tap_dance_actions[] = {
+tap_dance_action_t tap_dance_actions[] = {
// tap once for home, twice for end
[TD_HOME_END] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END)
};
@@ -446,27 +446,18 @@ bool rgb_matrix_indicators_user(void) {
return false;
}
-#ifdef LEADER_ENABLE
-LEADER_EXTERNS();
-
-void matrix_scan_user(void) {
- LEADER_DICTIONARY() {
- leading = false;
- leader_end();
-
- SEQ_ONE_KEY(KC_F) {
- // Anything you can do in a macro.
- SEND_STRING("QMK is awesome.");
- }
- SEQ_TWO_KEYS(KC_D, KC_D) {
- SEND_STRING(SS_LCTL("a") SS_LCTL("c"));
- }
- SEQ_TWO_KEYS(KC_S, KC_S) {
- SEND_STRING(SS_LCTL("v"));
- }
- SEQ_THREE_KEYS(KC_D, KC_D, KC_S) {
- SEND_STRING("https://start.duckduckgo.com\n");
- }
+void leader_end_user(void) {
+ if (leader_sequence_one_key(KC_F)) {
+ // Anything you can do in a macro.
+ SEND_STRING("QMK is awesome.");
+ }
+ if (leader_sequence_two_keys(KC_D, KC_D)) {
+ SEND_STRING(SS_LCTL("a") SS_LCTL("c"));
+ }
+ if (leader_sequence_two_keys(KC_S, KC_S)) {
+ SEND_STRING(SS_LCTL("v"));
+ }
+ if (leader_sequence_three_keys(KC_D, KC_D, KC_S)) {
+ SEND_STRING("https://start.duckduckgo.com\n");
}
}
-#endif