summaryrefslogtreecommitdiffstats
path: root/users/curry/leader.c
diff options
context:
space:
mode:
authorAkaash Suresh <casa.akaash@gmail.com>2020-01-09 13:57:54 -0600
committerDrashna Jaelre <drashna@live.com>2020-01-09 11:57:54 -0800
commitcaa70df816033c30dbbbf4c5a90d803c7bb1dfde (patch)
tree4246ca4b2808cdd1b8ed681392258f195e579014 /users/curry/leader.c
parent71de09d7510213d707ca1056c6e0eca840678d37 (diff)
[Keymap] Userspace refactor, adding leader key functionality (#7790)
* Userspace refactor * Fixed missed ifdef * tapcode16, adjust layout * glcdfont changes from #7745 * Modify Keymaps, add workman * RGB & OLED update
Diffstat (limited to 'users/curry/leader.c')
-rw-r--r--users/curry/leader.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/users/curry/leader.c b/users/curry/leader.c
new file mode 100644
index 0000000000..3fca6a2ec3
--- /dev/null
+++ b/users/curry/leader.c
@@ -0,0 +1,24 @@
+#include "curry.h"
+#include "leader.h"
+
+LEADER_EXTERNS();
+
+void matrix_scan_user(void) {
+ static bool has_ran_yet;
+ if (!has_ran_yet) {
+ has_ran_yet = true;
+ startup_user();
+ }
+
+#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE)
+ matrix_scan_rgb();
+#endif // RGBLIGHT_ENABLE
+ LEADER_DICTIONARY() {
+ leading = false;
+ leader_end();
+ SEQ_ONE_KEY(KC_F) { SEND_STRING(SS_LCTL("akf")); } // Select all and format
+ SEQ_ONE_KEY(KC_P) { SEND_STRING(SS_LCTL(SS_LSFT("4"))); } // Screenshot region
+ SEQ_TWO_KEYS(KC_D, KC_D) { SEND_STRING(SS_LCTL("ac")); } // Copy all
+ }
+ matrix_scan_keymap();
+}