summaryrefslogtreecommitdiff
path: root/users/sigma
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-02-28 11:22:29 +1100
committerNick Brassel <nick@tzarc.org>2023-02-28 11:22:29 +1100
commitbacec14073b2e897d5a52caf12de5a6a1f7b4078 (patch)
treed4e3e57aac1a829a191831efd2e62c8a43217885 /users/sigma
parentd70e9b8659a7fbbd7069fd542bd07e67e04327a1 (diff)
parentb865b9e1706ad28ae4882bd2e0331e98808295fa (diff)
Merge remote-tracking branch 'upstream/develop'
Diffstat (limited to 'users/sigma')
-rw-r--r--users/sigma/sigma.c33
1 files changed, 13 insertions, 20 deletions
diff --git a/users/sigma/sigma.c b/users/sigma/sigma.c
index 9a0786233b..bd66729bdc 100644
--- a/users/sigma/sigma.c
+++ b/users/sigma/sigma.c
@@ -90,26 +90,19 @@ void store_userspace_config(void) {
eeconfig_update_user(stored_userspace_config.raw);
}
-LEADER_EXTERNS();
-
-void matrix_scan_user(void) {
- LEADER_DICTIONARY() {
- leading = false;
- leader_end();
-
- SEQ_TWO_KEYS(KC_F1, KC_L) {
- set_os(_OS_LINUX);
- }
- SEQ_TWO_KEYS(KC_F1, KC_M) {
- set_os(_OS_MACOS);
- }
- SEQ_TWO_KEYS(KC_F1, KC_W) {
- set_os(_OS_WINDOWS);
- }
- SEQ_TWO_KEYS(KC_F1, KC_S) {
- stored_userspace_config.raw = runtime_userspace_config.raw;
- store_userspace_config();
- }
+void leader_end_user(void) {
+ if (leader_sequence_two_keys(KC_F1, KC_L)) {
+ set_os(_OS_LINUX);
+ }
+ if (leader_sequence_two_keys(KC_F1, KC_M)) {
+ set_os(_OS_MACOS);
+ }
+ if (leader_sequence_two_keys(KC_F1, KC_W)) {
+ set_os(_OS_WINDOWS);
+ }
+ if (leader_sequence_two_keys(KC_F1, KC_S)) {
+ stored_userspace_config.raw = runtime_userspace_config.raw;
+ store_userspace_config();
}
}