summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-05-15 22:27:37 +1000
committerGitHub <noreply@github.com>2023-05-15 22:27:37 +1000
commit5faa23d54ca1e3ab83097f2a07922f48800616e6 (patch)
tree6ed05e5492f3fc8dda210a75b897dd9d4ed8df38 /users
parent433dc6068603e61d466e755aedcea0be96664f95 (diff)
Keymap introspection for combos. (#19670)
Diffstat (limited to 'users')
-rw-r--r--users/art/funcs/string_funcs.c48
-rw-r--r--users/danielo515/combo.c2
-rw-r--r--users/danielo515/config.h1
-rw-r--r--users/ericgebhart/extensions/keymap_combo.h3
-rw-r--r--users/ibnuda/combo.h4
-rw-r--r--users/ibnuda/config.h3
-rw-r--r--users/issmirnov/config.h1
-rw-r--r--users/issmirnov/issmirnov.c4
-rw-r--r--users/kuchosauronad0/combo.h5
-rw-r--r--users/kuchosauronad0/config.h1
-rw-r--r--users/manna-harbour_miryoku/config.h1
-rw-r--r--users/manna-harbour_miryoku/manna-harbour_miryoku.c2
-rw-r--r--users/muppetjones/config.h2
-rw-r--r--users/muppetjones/features/combos.c3
-rw-r--r--users/narze/superduper.c2
-rw-r--r--users/ninjonas/combos.c4
-rw-r--r--users/ninjonas/config.h2
-rw-r--r--users/pdl/pdl.c2
-rw-r--r--users/talljoe/config.h1
-rw-r--r--users/uqs/uqs.c2
-rw-r--r--users/yet-another-developer/combo.h5
-rw-r--r--users/yet-another-developer/config.h1
-rw-r--r--users/zigotica/combos.c5
23 files changed, 39 insertions, 65 deletions
diff --git a/users/art/funcs/string_funcs.c b/users/art/funcs/string_funcs.c
index 319b1310e4..1ea86779cc 100644
--- a/users/art/funcs/string_funcs.c
+++ b/users/art/funcs/string_funcs.c
@@ -37,10 +37,8 @@ enum combo_events {
37 ED_ENTER, 37 ED_ENTER,
38 38
39 ED_CS_ENTER, 39 ED_CS_ENTER,
40 BSPC_LSFT_CLEAR, 40 BSPC_LSFT_CLEAR
41 COMBO_LENGTH
42}; 41};
43uint16_t COMBO_LEN = COMBO_LENGTH; // do not remove - needed for combos to work
44 42
45const uint16_t PROGMEM combo_up[] = {KC_W, KC_R, COMBO_END}; 43const uint16_t PROGMEM combo_up[] = {KC_W, KC_R, COMBO_END};
46const uint16_t PROGMEM combo_left[] = {KC_S, KC_E, COMBO_END}; 44const uint16_t PROGMEM combo_left[] = {KC_S, KC_E, COMBO_END};
@@ -122,7 +120,7 @@ void process_combo_event(uint16_t combo_index, bool pressed) {
122 tap_code16(A(KC_RIGHT)); 120 tap_code16(A(KC_RIGHT));
123 } 121 }
124 } 122 }
125 break; 123 break;
126 case BSPC_LSFT_CLEAR: 124 case BSPC_LSFT_CLEAR:
127 if (pressed) { 125 if (pressed) {
128 tap_code16(KC_END); 126 tap_code16(KC_END);
@@ -134,7 +132,7 @@ void process_combo_event(uint16_t combo_index, bool pressed) {
134 if (pressed) { 132 if (pressed) {
135 tap_code16(C(S(KC_ENTER))); 133 tap_code16(C(S(KC_ENTER)));
136 } 134 }
137 break; 135 break;
138 } 136 }
139} 137}
140 138
@@ -210,63 +208,63 @@ void send_string_with_translation(char *string) {
210 208
211 case 'w': 209 case 'w':
212 toPrint = 'd'; 210 toPrint = 'd';
213 break; 211 break;
214 case 'e': 212 case 'e':
215 toPrint = 'r'; 213 toPrint = 'r';
216 break; 214 break;
217 case 'r': 215 case 'r':
218 toPrint = 'w'; 216 toPrint = 'w';
219 break; 217 break;
220 case 't': 218 case 't':
221 toPrint = 'b'; 219 toPrint = 'b';
222 break; 220 break;
223 case 'y': 221 case 'y':
224 toPrint = 'j'; 222 toPrint = 'j';
225 break; 223 break;
226 case 'u': 224 case 'u':
227 toPrint = 'f'; 225 toPrint = 'f';
228 break; 226 break;
229 case 'i': 227 case 'i':
230 toPrint = 'u'; 228 toPrint = 'u';
231 break; 229 break;
232 case 'o': 230 case 'o':
233 toPrint = 'p'; 231 toPrint = 'p';
234 break; 232 break;
235 case 'p': 233 case 'p':
236 toPrint = ';'; 234 toPrint = ';';
237 break; 235 break;
238 236
239 case 'd': 237 case 'd':
240 toPrint = 'h'; 238 toPrint = 'h';
241 break; 239 break;
242 case 'f': 240 case 'f':
243 toPrint = 't'; 241 toPrint = 't';
244 break; 242 break;
245 case 'h': 243 case 'h':
246 toPrint = 'y'; 244 toPrint = 'y';
247 break; 245 break;
248 case 'j': 246 case 'j':
249 toPrint = 'n'; 247 toPrint = 'n';
250 break; 248 break;
251 case 'k': 249 case 'k':
252 toPrint = 'e'; 250 toPrint = 'e';
253 break; 251 break;
254 case 'l': 252 case 'l':
255 toPrint = 'o'; 253 toPrint = 'o';
256 break; 254 break;
257 case ';': 255 case ';':
258 toPrint = 'i'; 256 toPrint = 'i';
259 break; 257 break;
260 258
261 case 'b': 259 case 'b':
262 toPrint = 'm'; 260 toPrint = 'm';
263 break; 261 break;
264 case 'n': 262 case 'n':
265 toPrint = 'k'; 263 toPrint = 'k';
266 break; 264 break;
267 case 'm': 265 case 'm':
268 toPrint = 'l'; 266 toPrint = 'l';
269 break; 267 break;
270 } 268 }
271 if (isUpperCase) { 269 if (isUpperCase) {
272 isUpperCase = 0; 270 isUpperCase = 0;
@@ -306,4 +304,4 @@ void send_shifted_strings_add(char *string1, char *string2) {
306 send_string(string2); 304 send_string(string2);
307 char_to_bspace = strlen(string1) + strlen(string2); 305 char_to_bspace = strlen(string1) + strlen(string2);
308 } 306 }
309} \ No newline at end of file 307}
diff --git a/users/danielo515/combo.c b/users/danielo515/combo.c
index b33cb838bc..dae53f6e85 100644
--- a/users/danielo515/combo.c
+++ b/users/danielo515/combo.c
@@ -26,7 +26,7 @@ const uint16_t PROGMEM n_m[] = {KC_N, KC_M, COMBO_END};
26const uint16_t PROGMEM o_p_combo[] = {KC_O, KC_P, COMBO_END}; 26const uint16_t PROGMEM o_p_combo[] = {KC_O, KC_P, COMBO_END};
27const uint16_t PROGMEM m_cm_dot_combo[] = {KC_M, KC_COMMA, KC_DOT, COMBO_END}; 27const uint16_t PROGMEM m_cm_dot_combo[] = {KC_M, KC_COMMA, KC_DOT, COMBO_END};
28 28
29combo_t key_combos[COMBO_COUNT] = { 29combo_t key_combos[] = {
30 [JK_ESC] = COMBO(jk_combo, KC_ESC), 30 [JK_ESC] = COMBO(jk_combo, KC_ESC),
31 [YU_COM] = COMBO(yu_combo, KC_AMPR), 31 [YU_COM] = COMBO(yu_combo, KC_AMPR),
32 [UI_COM] = COMBO(ui_combo, KC_CIRC), 32 [UI_COM] = COMBO(ui_combo, KC_CIRC),
diff --git a/users/danielo515/config.h b/users/danielo515/config.h
index 11007eb27f..c5f9b08389 100644
--- a/users/danielo515/config.h
+++ b/users/danielo515/config.h
@@ -1,7 +1,6 @@
1#pragma once 1#pragma once
2 2
3#if defined(COMBO_ENABLE) 3#if defined(COMBO_ENABLE)
4# define COMBO_COUNT 11
5# define COMBO_TERM 25 4# define COMBO_TERM 25
6#endif // !COMBO_ENABLE 5#endif // !COMBO_ENABLE
7// Timeout settings for leader key 6// Timeout settings for leader key
diff --git a/users/ericgebhart/extensions/keymap_combo.h b/users/ericgebhart/extensions/keymap_combo.h
index cd9684e601..e918fa08ea 100644
--- a/users/ericgebhart/extensions/keymap_combo.h
+++ b/users/ericgebhart/extensions/keymap_combo.h
@@ -52,10 +52,7 @@ void process_combo_event(uint16_t combo_index, bool pressed);
52#define TOGG A_ENUM 52#define TOGG A_ENUM
53enum combos { 53enum combos {
54#include "combos.def" 54#include "combos.def"
55 COMBO_LENGTH
56}; 55};
57// Export length to combo module
58uint16_t COMBO_LEN = COMBO_LENGTH;
59 56
60// Bake combos into mem 57// Bake combos into mem
61#undef COMB 58#undef COMB
diff --git a/users/ibnuda/combo.h b/users/ibnuda/combo.h
index d7e79764a9..c4fd5f12ed 100644
--- a/users/ibnuda/combo.h
+++ b/users/ibnuda/combo.h
@@ -64,7 +64,7 @@ const uint16_t PROGMEM rl_i_ii_combo[] = {RLI, RLII, COMBO_END};
64// both hand combinations. 64// both hand combinations.
65const uint16_t PROGMEM bl_m_m_combo[] = {LLM, RLM, COMBO_END}; 65const uint16_t PROGMEM bl_m_m_combo[] = {LLM, RLM, COMBO_END};
66 66
67combo_t key_combos[COMBO_COUNT] = { 67combo_t key_combos[] = {
68 // left hand combinations. 68 // left hand combinations.
69 [R_U_PINKY_RING] = COMBO(lu_p_r_combo, KC_TAB), 69 [R_U_PINKY_RING] = COMBO(lu_p_r_combo, KC_TAB),
70 [R_U_RING_MIDDLE] = COMBO(lu_r_m_combo, KC_QUES), 70 [R_U_RING_MIDDLE] = COMBO(lu_r_m_combo, KC_QUES),
@@ -93,4 +93,4 @@ combo_t key_combos[COMBO_COUNT] = {
93 93
94 // both hand combinations. 94 // both hand combinations.
95 [B_L_MIDDLE_MIDDLE] = COMBO(bl_m_m_combo, KC_ENT), 95 [B_L_MIDDLE_MIDDLE] = COMBO(bl_m_m_combo, KC_ENT),
96}; \ No newline at end of file 96};
diff --git a/users/ibnuda/config.h b/users/ibnuda/config.h
index c4fec5bc2d..957d24a04c 100644
--- a/users/ibnuda/config.h
+++ b/users/ibnuda/config.h
@@ -1,6 +1,5 @@
1#pragma once 1#pragma once
2 2
3#define COMBO_TERM 50 3#define COMBO_TERM 50
4#define COMBO_COUNT 50
5 4
6#define PERMISSIVE_HOLD \ No newline at end of file 5#define PERMISSIVE_HOLD
diff --git a/users/issmirnov/config.h b/users/issmirnov/config.h
index 5fe78f7a53..a74f6fbc91 100644
--- a/users/issmirnov/config.h
+++ b/users/issmirnov/config.h
@@ -21,7 +21,6 @@
21#define ONESHOT_TIMEOUT 2000 21#define ONESHOT_TIMEOUT 2000
22 22
23// Enable combos for vim 23// Enable combos for vim
24#define COMBO_COUNT 5 // Specify the number of combos used. BE SURE TO INCREMENT AS NEEDED
25#define COMBO_TERM 50 // window in milliseconds to trigger combo 24#define COMBO_TERM 50 // window in milliseconds to trigger combo
26 25
27// Allow more than 4 keys to be sent to the system. Useful for gaming. 26// Allow more than 4 keys to be sent to the system. Useful for gaming.
diff --git a/users/issmirnov/issmirnov.c b/users/issmirnov/issmirnov.c
index 45ef7b19a7..ecfb423ee2 100644
--- a/users/issmirnov/issmirnov.c
+++ b/users/issmirnov/issmirnov.c
@@ -15,9 +15,7 @@ const uint16_t PROGMEM sd_combo[] = {KC_S, KC_D, COMBO_END};
15const uint16_t PROGMEM copy_combo[] = {KC_X, KC_C, COMBO_END}; 15const uint16_t PROGMEM copy_combo[] = {KC_X, KC_C, COMBO_END};
16const uint16_t PROGMEM paste_combo[] = {KC_X, KC_V, COMBO_END}; 16const uint16_t PROGMEM paste_combo[] = {KC_X, KC_V, COMBO_END};
17 17
18 18combo_t key_combos[] = {
19// BE SURE TO UPDATE THE CONFIG.H "COMBO_COUNT" value when you add elements here!
20combo_t key_combos[COMBO_COUNT] = {
21 COMBO(jk_combo, KC_ESC), 19 COMBO(jk_combo, KC_ESC),
22 COMBO(df_combo, KC_COLON), 20 COMBO(df_combo, KC_COLON),
23 COMBO(sd_combo, KC_SLASH), 21 COMBO(sd_combo, KC_SLASH),
diff --git a/users/kuchosauronad0/combo.h b/users/kuchosauronad0/combo.h
index e2ff09ab5a..6fb3eaf58c 100644
--- a/users/kuchosauronad0/combo.h
+++ b/users/kuchosauronad0/combo.h
@@ -1,4 +1,4 @@
1#pragma once 1#pragma once
2#include "quantum.h" 2#include "quantum.h"
3enum combo_events { 3enum combo_events {
4 ZV_COPY, 4 ZV_COPY,
@@ -12,10 +12,9 @@ const uint16_t PROGMEM cut_combo[] = {KC_X, KC_V, COMBO_END};
12const uint16_t PROGMEM paste_combo[] = {KC_C, KC_V, COMBO_END}; 12const uint16_t PROGMEM paste_combo[] = {KC_C, KC_V, COMBO_END};
13const uint16_t PROGMEM sleep_combo[] = {KC_Q, KC_P, COMBO_END}; 13const uint16_t PROGMEM sleep_combo[] = {KC_Q, KC_P, COMBO_END};
14 14
15combo_t key_combos[COMBO_COUNT] = { 15combo_t key_combos[] = {
16 [ZV_COPY] = COMBO_ACTION(copy_combo), 16 [ZV_COPY] = COMBO_ACTION(copy_combo),
17 [XV_CUT] = COMBO_ACTION(cut_combo), 17 [XV_CUT] = COMBO_ACTION(cut_combo),
18 [CV_PASTE] = COMBO_ACTION(paste_combo), 18 [CV_PASTE] = COMBO_ACTION(paste_combo),
19 [QP_SLEEP] = COMBO_ACTION(sleep_combo), 19 [QP_SLEEP] = COMBO_ACTION(sleep_combo),
20}; 20};
21
diff --git a/users/kuchosauronad0/config.h b/users/kuchosauronad0/config.h
index 28e41215b9..58ef7a20f8 100644
--- a/users/kuchosauronad0/config.h
+++ b/users/kuchosauronad0/config.h
@@ -56,7 +56,6 @@
56#endif // !LEADER_ENABLE 56#endif // !LEADER_ENABLE
57 57
58#if defined(COMBO_ENABLE) 58#if defined(COMBO_ENABLE)
59# define COMBO_COUNT 4
60# define COMBO_TERM 150 59# define COMBO_TERM 150
61#endif // !COMBO_ENABLE 60#endif // !COMBO_ENABLE
62 61
diff --git a/users/manna-harbour_miryoku/config.h b/users/manna-harbour_miryoku/config.h
index 3656e9eded..f2bc9c331b 100644
--- a/users/manna-harbour_miryoku/config.h
+++ b/users/manna-harbour_miryoku/config.h
@@ -34,7 +34,6 @@
34 34
35// Thumb Combos 35// Thumb Combos
36#if defined (MIRYOKU_KLUDGE_THUMBCOMBOS) 36#if defined (MIRYOKU_KLUDGE_THUMBCOMBOS)
37 #define COMBO_COUNT 8
38 #define COMBO_TERM 200 37 #define COMBO_TERM 200
39 #define EXTRA_SHORT_COMBOS 38 #define EXTRA_SHORT_COMBOS
40#endif 39#endif
diff --git a/users/manna-harbour_miryoku/manna-harbour_miryoku.c b/users/manna-harbour_miryoku/manna-harbour_miryoku.c
index 389580759b..58b68c2727 100644
--- a/users/manna-harbour_miryoku/manna-harbour_miryoku.c
+++ b/users/manna-harbour_miryoku/manna-harbour_miryoku.c
@@ -74,7 +74,7 @@ const uint16_t PROGMEM thumbcombos_sym[] = {KC_UNDS, KC_LPRN, COMBO_END};
74const uint16_t PROGMEM thumbcombos_sym[] = {KC_RPRN, KC_UNDS, COMBO_END}; 74const uint16_t PROGMEM thumbcombos_sym[] = {KC_RPRN, KC_UNDS, COMBO_END};
75 #endif 75 #endif
76const uint16_t PROGMEM thumbcombos_fun[] = {KC_SPC, KC_TAB, COMBO_END}; 76const uint16_t PROGMEM thumbcombos_fun[] = {KC_SPC, KC_TAB, COMBO_END};
77combo_t key_combos[COMBO_COUNT] = { 77combo_t key_combos[] = {
78 COMBO(thumbcombos_base_right, LT(U_FUN, KC_DEL)), 78 COMBO(thumbcombos_base_right, LT(U_FUN, KC_DEL)),
79 COMBO(thumbcombos_base_left, LT(U_MEDIA, KC_ESC)), 79 COMBO(thumbcombos_base_left, LT(U_MEDIA, KC_ESC)),
80 COMBO(thumbcombos_nav, KC_DEL), 80 COMBO(thumbcombos_nav, KC_DEL),
diff --git a/users/muppetjones/config.h b/users/muppetjones/config.h
index cbc318d24f..742a97950d 100644
--- a/users/muppetjones/config.h
+++ b/users/muppetjones/config.h
@@ -35,6 +35,4 @@
35 35
36#endif 36#endif
37 37
38
39#define COMBO_COUNT 3
40#define COMBO_TERM 40 38#define COMBO_TERM 40
diff --git a/users/muppetjones/features/combos.c b/users/muppetjones/features/combos.c
index a6d14bb25c..a357b3ad4e 100644
--- a/users/muppetjones/features/combos.c
+++ b/users/muppetjones/features/combos.c
@@ -27,8 +27,7 @@ const uint16_t PROGMEM h_comm_tab[] = {KC_H, KC_COMM, COMBO_END};
27const uint16_t PROGMEM l_u_scln[] = {KC_L, KC_U, COMBO_END}; 27const uint16_t PROGMEM l_u_scln[] = {KC_L, KC_U, COMBO_END};
28const uint16_t PROGMEM j_m_caps[] = {KC_J, KC_M, COMBO_END}; 28const uint16_t PROGMEM j_m_caps[] = {KC_J, KC_M, COMBO_END};
29 29
30// COMBO_COUNT defined in config.h 30combo_t key_combos[] = {
31combo_t key_combos[COMBO_COUNT] = {
32 [H_COMM_TAB] = COMBO(h_comm_tab, KC_TAB), 31 [H_COMM_TAB] = COMBO(h_comm_tab, KC_TAB),
33 [L_U_SCLN] = COMBO(l_u_scln, KC_SCLN), 32 [L_U_SCLN] = COMBO(l_u_scln, KC_SCLN),
34 [J_M_CAPS] = COMBO(j_m_caps, KC_CAPS), 33 [J_M_CAPS] = COMBO(j_m_caps, KC_CAPS),
diff --git a/users/narze/superduper.c b/users/narze/superduper.c
index b497ce2e68..7545685727 100644
--- a/users/narze/superduper.c
+++ b/users/narze/superduper.c
@@ -24,7 +24,7 @@ const uint16_t PROGMEM superduper_combos[SUPERDUPER_COMBO_COUNT][3] = {
24 [_QWOC] = {CM_S, CM_D, COMBO_END}, 24 [_QWOC] = {CM_S, CM_D, COMBO_END},
25}; 25};
26 26
27combo_t key_combos[COMBO_COUNT] = { 27combo_t key_combos[] = {
28 [CB_SUPERDUPER] = COMBO_ACTION(superduper_combos[_QWERTY]), 28 [CB_SUPERDUPER] = COMBO_ACTION(superduper_combos[_QWERTY]),
29}; 29};
30 30
diff --git a/users/ninjonas/combos.c b/users/ninjonas/combos.c
index 8d1cd6510f..3346af4ce4 100644
--- a/users/ninjonas/combos.c
+++ b/users/ninjonas/combos.c
@@ -15,7 +15,7 @@ const uint16_t PROGMEM tab_combo[] = {KC_Q, KC_T, COMBO_END};
15const uint16_t PROGMEM copy_combo[] = {KC_Z, KC_C, COMBO_END}; 15const uint16_t PROGMEM copy_combo[] = {KC_Z, KC_C, COMBO_END};
16const uint16_t PROGMEM paste_combo[] = {KC_X, KC_V, COMBO_END}; 16const uint16_t PROGMEM paste_combo[] = {KC_X, KC_V, COMBO_END};
17 17
18combo_t key_combos[COMBO_COUNT] = { 18combo_t key_combos[] = {
19 [EQ_QUIT] = COMBO_ACTION(quit_combo), 19 [EQ_QUIT] = COMBO_ACTION(quit_combo),
20 [RW_CLOSE] = COMBO_ACTION(close_combo), 20 [RW_CLOSE] = COMBO_ACTION(close_combo),
21 [QT_TAB] = COMBO_ACTION(tab_combo), 21 [QT_TAB] = COMBO_ACTION(tab_combo),
@@ -52,4 +52,4 @@ void process_combo_event(uint16_t combo_index, bool pressed) {
52 break; 52 break;
53 } 53 }
54} 54}
55#endif \ No newline at end of file 55#endif
diff --git a/users/ninjonas/config.h b/users/ninjonas/config.h
index 565e40e841..17bb03865c 100644
--- a/users/ninjonas/config.h
+++ b/users/ninjonas/config.h
@@ -15,8 +15,6 @@
15#define MOUSEKEY_WHEEL_DELAY 0 15#define MOUSEKEY_WHEEL_DELAY 0
16 16
17#ifdef COMBO_ENABLE 17#ifdef COMBO_ENABLE
18 #undef COMBO_COUNT
19 #undef COMBO_TERM 18 #undef COMBO_TERM
20 #define COMBO_COUNT 5
21 #define COMBO_TERM 60 19 #define COMBO_TERM 60
22#endif 20#endif
diff --git a/users/pdl/pdl.c b/users/pdl/pdl.c
index 5b90a0b310..1ad2e02c12 100644
--- a/users/pdl/pdl.c
+++ b/users/pdl/pdl.c
@@ -181,7 +181,7 @@ const uint16_t PROGMEM xcombo_redo[] = {KC_B, KC_H, COMBO_END};
181const uint16_t PROGMEM xcombo_pgup[] = {KC_G, KC_B, COMBO_END}; 181const uint16_t PROGMEM xcombo_pgup[] = {KC_G, KC_B, COMBO_END};
182const uint16_t PROGMEM xcombo_pgdn[] = {KC_G, KC_K, COMBO_END}; 182const uint16_t PROGMEM xcombo_pgdn[] = {KC_G, KC_K, COMBO_END};
183 183
184combo_t key_combos[COMBO_COUNT] = { 184combo_t key_combos[] = {
185 [VCOMBO_PU] = COMBO(vcombo_pu, KC_CIRC), 185 [VCOMBO_PU] = COMBO(vcombo_pu, KC_CIRC),
186 [VCOMBO_NU] = COMBO(vcombo_nu, KC_LBRC), 186 [VCOMBO_NU] = COMBO(vcombo_nu, KC_LBRC),
187 [VCOMBO_EU] = COMBO(vcombo_eu, LSFT(KC_9)), 187 [VCOMBO_EU] = COMBO(vcombo_eu, LSFT(KC_9)),
diff --git a/users/talljoe/config.h b/users/talljoe/config.h
index dcdbbd89f4..6cf0605be3 100644
--- a/users/talljoe/config.h
+++ b/users/talljoe/config.h
@@ -19,5 +19,4 @@
19 19
20#define RESET_LAYER 15 20#define RESET_LAYER 15
21 21
22#define COMBO_COUNT 2
23#define COMBO_TERM 250 22#define COMBO_TERM 250
diff --git a/users/uqs/uqs.c b/users/uqs/uqs.c
index 83733bbe2a..cd5e86bdcb 100644
--- a/users/uqs/uqs.c
+++ b/users/uqs/uqs.c
@@ -125,8 +125,6 @@ const uint16_t PROGMEM my_combos[][4] = {
125 {KC_BTN1, KC_BTN2, KC_BTN3, COMBO_END}, 125 {KC_BTN1, KC_BTN2, KC_BTN3, COMBO_END},
126}; 126};
127 127
128const uint16_t COMBO_LEN = ARRAY_SIZE(my_action_combos) + ARRAY_SIZE(my_combos);
129
130#define MY_ACTION_COMBO(ck) \ 128#define MY_ACTION_COMBO(ck) \
131 [ck] = { .keys = &(my_action_combos[ck][0]) } 129 [ck] = { .keys = &(my_action_combos[ck][0]) }
132#define MY_COMBO(ck) \ 130#define MY_COMBO(ck) \
diff --git a/users/yet-another-developer/combo.h b/users/yet-another-developer/combo.h
index e2ff09ab5a..6fb3eaf58c 100644
--- a/users/yet-another-developer/combo.h
+++ b/users/yet-another-developer/combo.h
@@ -1,4 +1,4 @@
1#pragma once 1#pragma once
2#include "quantum.h" 2#include "quantum.h"
3enum combo_events { 3enum combo_events {
4 ZV_COPY, 4 ZV_COPY,
@@ -12,10 +12,9 @@ const uint16_t PROGMEM cut_combo[] = {KC_X, KC_V, COMBO_END};
12const uint16_t PROGMEM paste_combo[] = {KC_C, KC_V, COMBO_END}; 12const uint16_t PROGMEM paste_combo[] = {KC_C, KC_V, COMBO_END};
13const uint16_t PROGMEM sleep_combo[] = {KC_Q, KC_P, COMBO_END}; 13const uint16_t PROGMEM sleep_combo[] = {KC_Q, KC_P, COMBO_END};
14 14
15combo_t key_combos[COMBO_COUNT] = { 15combo_t key_combos[] = {
16 [ZV_COPY] = COMBO_ACTION(copy_combo), 16 [ZV_COPY] = COMBO_ACTION(copy_combo),
17 [XV_CUT] = COMBO_ACTION(cut_combo), 17 [XV_CUT] = COMBO_ACTION(cut_combo),
18 [CV_PASTE] = COMBO_ACTION(paste_combo), 18 [CV_PASTE] = COMBO_ACTION(paste_combo),
19 [QP_SLEEP] = COMBO_ACTION(sleep_combo), 19 [QP_SLEEP] = COMBO_ACTION(sleep_combo),
20}; 20};
21
diff --git a/users/yet-another-developer/config.h b/users/yet-another-developer/config.h
index e783d08dc5..4836822eb4 100644
--- a/users/yet-another-developer/config.h
+++ b/users/yet-another-developer/config.h
@@ -17,7 +17,6 @@
17#endif // !LEADER_ENABLE 17#endif // !LEADER_ENABLE
18 18
19#if defined(COMBO_ENABLE) 19#if defined(COMBO_ENABLE)
20 #define COMBO_COUNT 4
21 #define COMBO_TERM 150 20 #define COMBO_TERM 150
22#endif // !COMBO_ENABLE 21#endif // !COMBO_ENABLE
23 22
diff --git a/users/zigotica/combos.c b/users/zigotica/combos.c
index a4d4f15618..3f37f3c859 100644
--- a/users/zigotica/combos.c
+++ b/users/zigotica/combos.c
@@ -15,10 +15,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
16enum combos { 16enum combos {
17 EM_EMAIL, 17 EM_EMAIL,
18 CL_CAPSL, 18 CL_CAPSL
19 COMBO_LENGTH
20}; 19};
21uint16_t COMBO_LEN = COMBO_LENGTH;
22 20
23const uint16_t PROGMEM email_combo[] = {LT(_SYM, KC_E), KC_M, COMBO_END}; 21const uint16_t PROGMEM email_combo[] = {LT(_SYM, KC_E), KC_M, COMBO_END};
24const uint16_t PROGMEM caps_combo[] = {KC_C, KC_L, COMBO_END}; 22const uint16_t PROGMEM caps_combo[] = {KC_C, KC_L, COMBO_END};
@@ -37,4 +35,3 @@ void process_combo_event(uint16_t combo_index, bool pressed) {
37 break; 35 break;
38 } 36 }
39} 37}
40