aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/feature_command.md13
-rw-r--r--keyboards/xd75/keymaps/billypython/config.h3
-rw-r--r--quantum/template/avr/config.h11
-rw-r--r--tmk_core/common/command.c31
-rw-r--r--tmk_core/common/command.h34
-rw-r--r--users/billypython/config.h2
-rw-r--r--users/konstantin/config.h3
7 files changed, 48 insertions, 49 deletions
diff --git a/docs/feature_command.md b/docs/feature_command.md
index 53a140a11..deabedc1c 100644
--- a/docs/feature_command.md
+++ b/docs/feature_command.md
@@ -29,9 +29,10 @@ If you would like to change the key assignments for Command, `#define` these in
29|`MAGIC_KEY_CONSOLE` |`C` |Enable the Command console | 29|`MAGIC_KEY_CONSOLE` |`C` |Enable the Command console |
30|`MAGIC_KEY_VERSION` |`V` |Print the running QMK version to the console | 30|`MAGIC_KEY_VERSION` |`V` |Print the running QMK version to the console |
31|`MAGIC_KEY_STATUS` |`S` |Print the current keyboard status to the console| 31|`MAGIC_KEY_STATUS` |`S` |Print the current keyboard status to the console|
32|`MAGIC_KEY_HELP1` |`H` |Print Command help to the console | 32|`MAGIC_KEY_HELP` |`H` |Print Command help to the console |
33|`MAGIC_KEY_HELP2` |`SLASH` |Print Command help to the console (alternate) | 33|`MAGIC_KEY_HELP_ALT` |`SLASH` |Print Command help to the console (alternate) |
34|`MAGIC_KEY_LAYER0` |`0` |Make layer 0 the default layer | 34|`MAGIC_KEY_LAYER0` |`0` |Make layer 0 the default layer |
35|`MAGIC_KEY_LAYER0_ALT` |`GRAVE` |Make layer 0 the default layer (alternate) |
35|`MAGIC_KEY_LAYER1` |`1` |Make layer 1 the default layer | 36|`MAGIC_KEY_LAYER1` |`1` |Make layer 1 the default layer |
36|`MAGIC_KEY_LAYER2` |`2` |Make layer 2 the default layer | 37|`MAGIC_KEY_LAYER2` |`2` |Make layer 2 the default layer |
37|`MAGIC_KEY_LAYER3` |`3` |Make layer 3 the default layer | 38|`MAGIC_KEY_LAYER3` |`3` |Make layer 3 the default layer |
@@ -41,10 +42,10 @@ If you would like to change the key assignments for Command, `#define` these in
41|`MAGIC_KEY_LAYER7` |`7` |Make layer 7 the default layer | 42|`MAGIC_KEY_LAYER7` |`7` |Make layer 7 the default layer |
42|`MAGIC_KEY_LAYER8` |`8` |Make layer 8 the default layer | 43|`MAGIC_KEY_LAYER8` |`8` |Make layer 8 the default layer |
43|`MAGIC_KEY_LAYER9` |`9` |Make layer 9 the default layer | 44|`MAGIC_KEY_LAYER9` |`9` |Make layer 9 the default layer |
44|`MAGIC_KEY_LAYER0_ALT1` |`ESC` |Make layer 0 the default layer (alternate) | 45|`MAGIC_KEY_BOOTLOADER` |`B` |Jump to bootloader |
45|`MAGIC_KEY_LAYER0_ALT2` |`GRAVE` |Make layer 0 the default layer (alternate) | 46|`MAGIC_KEY_BOOTLOADER_ALT` |`ESC` |Jump to bootloader (alternate) |
46|`MAGIC_KEY_BOOTLOADER` |`PAUSE` |Enter the bootloader |
47|`MAGIC_KEY_LOCK` |`CAPS` |Lock the keyboard so nothing can be typed | 47|`MAGIC_KEY_LOCK` |`CAPS` |Lock the keyboard so nothing can be typed |
48|`MAGIC_KEY_EEPROM` |`E` |Clear the EEPROM | 48|`MAGIC_KEY_EEPROM` |`E` |Print stored EEPROM config to the console |
49|`MAGIC_KEY_EEPROM_CLEAR` |`BSPACE` |Clear the EEPROM |
49|`MAGIC_KEY_NKRO` |`N` |Toggle N-Key Rollover (NKRO) | 50|`MAGIC_KEY_NKRO` |`N` |Toggle N-Key Rollover (NKRO) |
50|`MAGIC_KEY_SLEEP_LED` |`Z` |Toggle LED when computer is sleeping | 51|`MAGIC_KEY_SLEEP_LED` |`Z` |Toggle LED when computer is sleeping |
diff --git a/keyboards/xd75/keymaps/billypython/config.h b/keyboards/xd75/keymaps/billypython/config.h
index 275f8effb..36e6b6785 100644
--- a/keyboards/xd75/keymaps/billypython/config.h
+++ b/keyboards/xd75/keymaps/billypython/config.h
@@ -2,9 +2,6 @@
2 2
3#define FORCE_NKRO 3#define FORCE_NKRO
4 4
5#define MAGIC_KEY_LAYER0_ALT1 BSLS
6#define MAGIC_KEY_BOOTLOADER ESC
7
8#define MOUSEKEY_DELAY 50 5#define MOUSEKEY_DELAY 50
9#define MOUSEKEY_INTERVAL 15 6#define MOUSEKEY_INTERVAL 15
10#define MOUSEKEY_MAX_SPEED 4 7#define MOUSEKEY_MAX_SPEED 4
diff --git a/quantum/template/avr/config.h b/quantum/template/avr/config.h
index a31fcf236..41e1aa078 100644
--- a/quantum/template/avr/config.h
+++ b/quantum/template/avr/config.h
@@ -143,8 +143,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
143//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS 143//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
144//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS 144//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
145//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM 145//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
146//#define MAGIC_KEY_HELP1 H 146//#define MAGIC_KEY_HELP H
147//#define MAGIC_KEY_HELP2 SLASH 147//#define MAGIC_KEY_HELP_ALT SLASH
148//#define MAGIC_KEY_DEBUG D 148//#define MAGIC_KEY_DEBUG D
149//#define MAGIC_KEY_DEBUG_MATRIX X 149//#define MAGIC_KEY_DEBUG_MATRIX X
150//#define MAGIC_KEY_DEBUG_KBD K 150//#define MAGIC_KEY_DEBUG_KBD K
@@ -152,9 +152,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
152//#define MAGIC_KEY_VERSION V 152//#define MAGIC_KEY_VERSION V
153//#define MAGIC_KEY_STATUS S 153//#define MAGIC_KEY_STATUS S
154//#define MAGIC_KEY_CONSOLE C 154//#define MAGIC_KEY_CONSOLE C
155//#define MAGIC_KEY_LAYER0_ALT1 ESC
156//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
157//#define MAGIC_KEY_LAYER0 0 155//#define MAGIC_KEY_LAYER0 0
156//#define MAGIC_KEY_LAYER0_ALT GRAVE
158//#define MAGIC_KEY_LAYER1 1 157//#define MAGIC_KEY_LAYER1 1
159//#define MAGIC_KEY_LAYER2 2 158//#define MAGIC_KEY_LAYER2 2
160//#define MAGIC_KEY_LAYER3 3 159//#define MAGIC_KEY_LAYER3 3
@@ -164,9 +163,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
164//#define MAGIC_KEY_LAYER7 7 163//#define MAGIC_KEY_LAYER7 7
165//#define MAGIC_KEY_LAYER8 8 164//#define MAGIC_KEY_LAYER8 8
166//#define MAGIC_KEY_LAYER9 9 165//#define MAGIC_KEY_LAYER9 9
167//#define MAGIC_KEY_BOOTLOADER PAUSE 166//#define MAGIC_KEY_BOOTLOADER B
167//#define MAGIC_KEY_BOOTLOADER_ALT ESC
168//#define MAGIC_KEY_LOCK CAPS 168//#define MAGIC_KEY_LOCK CAPS
169//#define MAGIC_KEY_EEPROM E 169//#define MAGIC_KEY_EEPROM E
170//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
170//#define MAGIC_KEY_NKRO N 171//#define MAGIC_KEY_NKRO N
171//#define MAGIC_KEY_SLEEP_LED Z 172//#define MAGIC_KEY_SLEEP_LED Z
172 173
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index aab99290d..d3884d9fa 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -151,17 +151,17 @@ static void command_common_help(void)
151 "0-9: Switch to Layer 0-9\n" 151 "0-9: Switch to Layer 0-9\n"
152#endif 152#endif
153 153
154 STR(MAGIC_KEY_LAYER0_ALT1 ) ": Switch to Layer 0 (alternate key 1)\n" 154 STR(MAGIC_KEY_LAYER0_ALT ) ": Switch to Layer 0 (alternate)\n"
155 STR(MAGIC_KEY_LAYER0_ALT2 ) ": Switch to Layer 0 (alternate key 2)\n" 155
156 STR(MAGIC_KEY_BOOTLOADER ) ": Jump to Bootloader (Reset)\n" 156 STR(MAGIC_KEY_BOOTLOADER ) ": Jump to Bootloader\n"
157 STR(MAGIC_KEY_BOOTLOADER_ALT) ": Jump to Bootloader (alternate)\n"
157 158
158#ifdef KEYBOARD_LOCK_ENABLE 159#ifdef KEYBOARD_LOCK_ENABLE
159 STR(MAGIC_KEY_LOCK ) ": Lock\n" 160 STR(MAGIC_KEY_LOCK ) ": Lock Keyboard\n"
160#endif 161#endif
161 162
162#ifdef BOOTMAGIC_ENABLE
163 STR(MAGIC_KEY_EEPROM ) ": Print EEPROM Settings\n" 163 STR(MAGIC_KEY_EEPROM ) ": Print EEPROM Settings\n"
164#endif 164 STR(MAGIC_KEY_EEPROM_CLEAR) ": Clear EEPROM\n"
165 165
166#ifdef NKRO_ENABLE 166#ifdef NKRO_ENABLE
167 STR(MAGIC_KEY_NKRO ) ": NKRO Toggle\n" 167 STR(MAGIC_KEY_NKRO ) ": NKRO Toggle\n"
@@ -265,7 +265,6 @@ static void print_status(void)
265 return; 265 return;
266} 266}
267 267
268#ifdef BOOTMAGIC_ENABLE
269static void print_eeconfig(void) 268static void print_eeconfig(void)
270{ 269{
271 270
@@ -305,7 +304,6 @@ static void print_eeconfig(void)
305#endif /* !NO_PRINT */ 304#endif /* !NO_PRINT */
306 305
307} 306}
308#endif /* BOOTMAGIC_ENABLE */
309 307
310static bool command_common(uint8_t code) 308static bool command_common(uint8_t code)
311{ 309{
@@ -326,14 +324,17 @@ static bool command_common(uint8_t code)
326 break; 324 break;
327#endif 325#endif
328 326
329#ifdef BOOTMAGIC_ENABLE
330
331 // print stored eeprom config 327 // print stored eeprom config
332 case MAGIC_KC(MAGIC_KEY_EEPROM): 328 case MAGIC_KC(MAGIC_KEY_EEPROM):
333 print("eeconfig:\n"); 329 print("eeconfig:\n");
334 print_eeconfig(); 330 print_eeconfig();
335 break; 331 break;
336#endif 332
333 // clear eeprom
334 case MAGIC_KC(MAGIC_KEY_EEPROM_CLEAR):
335 print("Clearing EEPROM\n");
336 eeconfig_init();
337 break;
337 338
338#ifdef KEYBOARD_LOCK_ENABLE 339#ifdef KEYBOARD_LOCK_ENABLE
339 340
@@ -352,8 +353,8 @@ static bool command_common(uint8_t code)
352#endif 353#endif
353 354
354 // print help 355 // print help
355 case MAGIC_KC(MAGIC_KEY_HELP1): 356 case MAGIC_KC(MAGIC_KEY_HELP):
356 case MAGIC_KC(MAGIC_KEY_HELP2): 357 case MAGIC_KC(MAGIC_KEY_HELP_ALT):
357 command_common_help(); 358 command_common_help();
358 break; 359 break;
359 360
@@ -370,6 +371,7 @@ static bool command_common(uint8_t code)
370 371
371 // jump to bootloader 372 // jump to bootloader
372 case MAGIC_KC(MAGIC_KEY_BOOTLOADER): 373 case MAGIC_KC(MAGIC_KEY_BOOTLOADER):
374 case MAGIC_KC(MAGIC_KEY_BOOTLOADER_ALT):
373 clear_keyboard(); // clear to prevent stuck keys 375 clear_keyboard(); // clear to prevent stuck keys
374 print("\n\nJumping to bootloader... "); 376 print("\n\nJumping to bootloader... ");
375 #ifdef AUDIO_ENABLE 377 #ifdef AUDIO_ENABLE
@@ -453,8 +455,7 @@ static bool command_common(uint8_t code)
453 455
454 // switch layers 456 // switch layers
455 457
456 case MAGIC_KC(MAGIC_KEY_LAYER0_ALT1): 458 case MAGIC_KC(MAGIC_KEY_LAYER0_ALT):
457 case MAGIC_KC(MAGIC_KEY_LAYER0_ALT2):
458 switch_default_layer(0); 459 switch_default_layer(0);
459 break; 460 break;
460 461
diff --git a/tmk_core/common/command.h b/tmk_core/common/command.h
index 052e25184..e7c7b0ea1 100644
--- a/tmk_core/common/command.h
+++ b/tmk_core/common/command.h
@@ -50,12 +50,12 @@ bool command_proc(uint8_t code);
50#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false 50#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
51#endif 51#endif
52 52
53#ifndef MAGIC_KEY_HELP1 53#ifndef MAGIC_KEY_HELP
54#define MAGIC_KEY_HELP1 H 54#define MAGIC_KEY_HELP H
55#endif 55#endif
56 56
57#ifndef MAGIC_KEY_HELP2 57#ifndef MAGIC_KEY_HELP_ALT
58#define MAGIC_KEY_HELP2 SLASH 58#define MAGIC_KEY_HELP_ALT SLASH
59#endif 59#endif
60 60
61#ifndef MAGIC_KEY_DEBUG 61#ifndef MAGIC_KEY_DEBUG
@@ -86,18 +86,14 @@ bool command_proc(uint8_t code);
86#define MAGIC_KEY_CONSOLE C 86#define MAGIC_KEY_CONSOLE C
87#endif 87#endif
88 88
89#ifndef MAGIC_KEY_LAYER0_ALT1
90#define MAGIC_KEY_LAYER0_ALT1 ESC
91#endif
92
93#ifndef MAGIC_KEY_LAYER0_ALT2
94#define MAGIC_KEY_LAYER0_ALT2 GRAVE
95#endif
96
97#ifndef MAGIC_KEY_LAYER0 89#ifndef MAGIC_KEY_LAYER0
98#define MAGIC_KEY_LAYER0 0 90#define MAGIC_KEY_LAYER0 0
99#endif 91#endif
100 92
93#ifndef MAGIC_KEY_LAYER0_ALT
94#define MAGIC_KEY_LAYER0_ALT GRAVE
95#endif
96
101#ifndef MAGIC_KEY_LAYER1 97#ifndef MAGIC_KEY_LAYER1
102#define MAGIC_KEY_LAYER1 1 98#define MAGIC_KEY_LAYER1 1
103#endif 99#endif
@@ -135,7 +131,11 @@ bool command_proc(uint8_t code);
135#endif 131#endif
136 132
137#ifndef MAGIC_KEY_BOOTLOADER 133#ifndef MAGIC_KEY_BOOTLOADER
138#define MAGIC_KEY_BOOTLOADER PAUSE 134#define MAGIC_KEY_BOOTLOADER B
135#endif
136
137#ifndef MAGIC_KEY_BOOTLOADER_ALT
138#define MAGIC_KEY_BOOTLOADER_ALT ESC
139#endif 139#endif
140 140
141#ifndef MAGIC_KEY_LOCK 141#ifndef MAGIC_KEY_LOCK
@@ -146,6 +146,10 @@ bool command_proc(uint8_t code);
146#define MAGIC_KEY_EEPROM E 146#define MAGIC_KEY_EEPROM E
147#endif 147#endif
148 148
149#ifndef MAGIC_KEY_EEPROM_CLEAR
150#define MAGIC_KEY_EEPROM_CLEAR BSPACE
151#endif
152
149#ifndef MAGIC_KEY_NKRO 153#ifndef MAGIC_KEY_NKRO
150#define MAGIC_KEY_NKRO N 154#define MAGIC_KEY_NKRO N
151#endif 155#endif
@@ -155,5 +159,5 @@ bool command_proc(uint8_t code);
155 159
156#endif 160#endif
157 161
158#define XMAGIC_KC(key) KC_##key 162#define XMAGIC_KC(key) KC_ ## key
159#define MAGIC_KC(key) XMAGIC_KC(key) 163#define MAGIC_KC(key) XMAGIC_KC(key)
diff --git a/users/billypython/config.h b/users/billypython/config.h
index 705e6c934..4609adbbe 100644
--- a/users/billypython/config.h
+++ b/users/billypython/config.h
@@ -2,8 +2,6 @@
2 2
3#define FORCE_NKRO 3#define FORCE_NKRO
4 4
5#define MAGIC_KEY_BOOTLOADER B
6
7#define MOUSEKEY_DELAY 50 5#define MOUSEKEY_DELAY 50
8#define MOUSEKEY_INTERVAL 15 6#define MOUSEKEY_INTERVAL 15
9#define MOUSEKEY_MAX_SPEED 4 7#define MOUSEKEY_MAX_SPEED 4
diff --git a/users/konstantin/config.h b/users/konstantin/config.h
index 800b8e49b..f18c4a70e 100644
--- a/users/konstantin/config.h
+++ b/users/konstantin/config.h
@@ -2,9 +2,6 @@
2 2
3#define FORCE_NKRO 3#define FORCE_NKRO
4 4
5#define MAGIC_KEY_LAYER0_ALT1 BSLS
6#define MAGIC_KEY_BOOTLOADER ESC
7
8#define MOUSEKEY_DELAY 50 5#define MOUSEKEY_DELAY 50
9#define MOUSEKEY_INTERVAL 15 6#define MOUSEKEY_INTERVAL 15
10#define MOUSEKEY_MAX_SPEED 4 7#define MOUSEKEY_MAX_SPEED 4