diff options
Diffstat (limited to 'common/bootmagic.h')
| -rw-r--r-- | common/bootmagic.h | 78 |
1 files changed, 26 insertions, 52 deletions
diff --git a/common/bootmagic.h b/common/bootmagic.h index 5791b221f..2e7496ebc 100644 --- a/common/bootmagic.h +++ b/common/bootmagic.h | |||
| @@ -2,71 +2,45 @@ | |||
| 2 | #define BOOTMAGIC_H | 2 | #define BOOTMAGIC_H |
| 3 | 3 | ||
| 4 | 4 | ||
| 5 | #ifndef BOOTMAGIC_IS_ENABLED | 5 | #ifndef BOOTMAGIC_KEY_SKIP |
| 6 | #define BOOTMAGIC_IS_ENABLED() true | 6 | #define BOOTMAGIC_KEY_SKIP KC_ESC |
| 7 | #endif | ||
| 8 | |||
| 9 | /* eeprom clear */ | ||
| 10 | #ifndef BOOTMAGIC_KEY_EEPROM_CLEAR | ||
| 11 | #define BOOTMAGIC_KEY_EEPROM_CLEAR KC_BSPACE | ||
| 7 | #endif | 12 | #endif |
| 8 | 13 | ||
| 9 | /* kick up bootloader */ | 14 | /* kick up bootloader */ |
| 10 | #ifndef BOOTMAGIC_BOOTLOADER_KEY | 15 | #ifndef BOOTMAGIC_KEY_BOOTLOADER |
| 11 | #define BOOTMAGIC_BOOTLOADER_KEY KC_B | 16 | #define BOOTMAGIC_KEY_BOOTLOADER KC_B |
| 12 | #endif | 17 | #endif |
| 18 | |||
| 13 | /* debug enable */ | 19 | /* debug enable */ |
| 14 | #ifndef BOOTMAGIC_DEBUG_ENABLE_KEY | 20 | #define BOOTMAGIC_KEY_DEBUG_ENABLE KC_D |
| 15 | #define BOOTMAGIC_DEBUG_ENABLE_KEY KC_D | 21 | #define BOOTMAGIC_KEY_DEBUG_MATRIX KC_X |
| 16 | #endif | 22 | #define BOOTMAGIC_KEY_DEBUG_KEYBOARD KC_K |
| 17 | /* eeprom clear */ | 23 | #define BOOTMAGIC_KEY_DEBUG_MOUSE KC_M |
| 18 | #ifndef BOOTMAGIC_EEPROM_CLEAR_KEY | ||
| 19 | #define BOOTMAGIC_EEPROM_CLEAR_KEY KC_BSPACE | ||
| 20 | #endif | ||
| 21 | 24 | ||
| 22 | /* | 25 | /* |
| 23 | * key configure | 26 | * keymap config |
| 24 | */ | 27 | */ |
| 25 | /* swap control and capslock */ | 28 | #define BOOTMAGIC_KEY_SWAP_CONTROL_CPASLOCK KC_LCTRL |
| 26 | #ifndef BOOTMAGIC_SWAP_CONTROL_CPASLOCK | 29 | #define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL KC_CAPSLOCK |
| 27 | #define BOOTMAGIC_SWAP_CONTROL_CPASLOCK KC_LCTRL | 30 | #define BOOTMAGIC_KEY_SWAP_LALT_LGUI KC_LALT |
| 28 | #endif | 31 | #define BOOTMAGIC_KEY_SWAP_RALT_RGUI KC_RALT |
| 29 | /* capslock to control */ | 32 | #define BOOTMAGIC_KEY_NO_GUI KC_LGUI |
| 30 | #ifndef BOOTMAGIC_CAPSLOCK_TO_CONTROL | 33 | #define BOOTMAGIC_KEY_SWAP_GRAVE_ESC KC_GRAVE |
| 31 | #define BOOTMAGIC_CAPSLOCK_TO_CONTROL KC_CAPSLOCK | 34 | #define BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE KC_BSLASH |
| 32 | #endif | ||
| 33 | /* swap alt and gui */ | ||
| 34 | #ifndef BOOTMAGIC_SWAP_LALT_LGUI | ||
| 35 | #define BOOTMAGIC_SWAP_LALT_LGUI KC_LALT | ||
| 36 | #endif | ||
| 37 | /* swap alt and gui */ | ||
| 38 | #ifndef BOOTMAGIC_SWAP_RALT_RGUI | ||
| 39 | #define BOOTMAGIC_SWAP_RALT_RGUI KC_RALT | ||
| 40 | #endif | ||
| 41 | /* no gui */ | ||
| 42 | #ifndef BOOTMAGIC_NO_GUI | ||
| 43 | #define BOOTMAGIC_NO_GUI KC_LGUI | ||
| 44 | #endif | ||
| 45 | /* swap esc and grave */ | ||
| 46 | #ifndef BOOTMAGIC_SWAP_GRAVE_ESC | ||
| 47 | #define BOOTMAGIC_SWAP_GRAVE_ESC KC_GRAVE | ||
| 48 | #endif | ||
| 49 | /* swap backslash and backspace */ | ||
| 50 | #ifndef BOOTMAGIC_SWAP_BACKSLASH_BACKSPACE | ||
| 51 | #define BOOTMAGIC_SWAP_BACKSLASH_BACKSPACE KC_BSLASH | ||
| 52 | #endif | ||
| 53 | 35 | ||
| 54 | 36 | ||
| 55 | /* | 37 | /* |
| 56 | * change default layer | 38 | * change default layer |
| 57 | */ | 39 | */ |
| 58 | #ifndef BOOTMAGIC_DEFAULT_LAYER_0_KEY | 40 | #define BOOTMAGIC_KEY_DEFAULT_LAYER_0 KC_0 |
| 59 | #define BOOTMAGIC_DEFAULT_LAYER_0_KEY KC_0 | 41 | #define BOOTMAGIC_KEY_DEFAULT_LAYER_1 KC_1 |
| 60 | #endif | 42 | #define BOOTMAGIC_KEY_DEFAULT_LAYER_2 KC_2 |
| 61 | #ifndef BOOTMAGIC_DEFAULT_LAYER_1_KEY | 43 | #define BOOTMAGIC_KEY_DEFAULT_LAYER_3 KC_3 |
| 62 | #define BOOTMAGIC_DEFAULT_LAYER_1_KEY KC_1 | ||
| 63 | #endif | ||
| 64 | #ifndef BOOTMAGIC_DEFAULT_LAYER_2_KEY | ||
| 65 | #define BOOTMAGIC_DEFAULT_LAYER_2_KEY KC_2 | ||
| 66 | #endif | ||
| 67 | #ifndef BOOTMAGIC_DEFAULT_LAYER_3_KEY | ||
| 68 | #define BOOTMAGIC_DEFAULT_LAYER_3_KEY KC_3 | ||
| 69 | #endif | ||
| 70 | 44 | ||
| 71 | 45 | ||
| 72 | void bootmagic(void); | 46 | void bootmagic(void); |
