summaryrefslogtreecommitdiffstats
path: root/users/sigma
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2023-04-26 16:32:15 +0800
committerlokher <lokher@gmail.com>2023-04-26 16:32:15 +0800
commite4f4ceaf3f2e3d25fb282273a81f9b58790fc427 (patch)
treec0a257eab0ffe5238fdf2c04882e8ee1fe8fc46e /users/sigma
parent103badc87cb50db1ff3851c84331e86ba78fb681 (diff)
merge upstream 713427c
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();
}
}