summaryrefslogtreecommitdiff
path: root/common/bootmagic.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/bootmagic.h')
-rw-r--r--common/bootmagic.h40
1 files changed, 38 insertions, 2 deletions
diff --git a/common/bootmagic.h b/common/bootmagic.h
index 7aa224def9..d32a5bef88 100644
--- a/common/bootmagic.h
+++ b/common/bootmagic.h
@@ -6,7 +6,7 @@
#define BOOTMAGIC_IS_ENABLE() true
#endif
-/* bootloader */
+/* kick up bootloader */
#ifndef BOOTMAGIC_BOOTLOADER_KEY
#define BOOTMAGIC_BOOTLOADER_KEY KC_B
#endif
@@ -19,7 +19,42 @@
#define BOOTMAGIC_EEPROM_CLEAR_KEY KC_BSPACE
#endif
-/* change default layer */
+/*
+ * key configure
+ */
+/* swap control and capslock */
+#ifndef BOOTMAGIC_SWAP_CONTROL_CPASLOCK
+#define BOOTMAGIC_SWAP_CONTROL_CPASLOCK KC_LCTRL
+#endif
+/* capslock to control */
+#ifndef BOOTMAGIC_CAPSLOCK_TO_CONTROL
+#define BOOTMAGIC_CAPSLOCK_TO_CONTROL KC_CAPSLOCK
+#endif
+/* swap alt and gui */
+#ifndef BOOTMAGIC_SWAP_LALT_LGUI
+#define BOOTMAGIC_SWAP_LALT_LGUI KC_LALT
+#endif
+/* swap alt and gui */
+#ifndef BOOTMAGIC_SWAP_RALT_RGUI
+#define BOOTMAGIC_SWAP_RALT_RGUI KC_RALT
+#endif
+/* no gui */
+#ifndef BOOTMAGIC_NO_GUI
+#define BOOTMAGIC_NO_GUI KC_LGUI
+#endif
+/* swap esc and grave */
+#ifndef BOOTMAGIC_SWAP_GRAVE_ESC
+#define BOOTMAGIC_SWAP_GRAVE_ESC KC_GRAVE
+#endif
+/* swap backslash and backspace */
+#ifndef BOOTMAGIC_SWAP_BACKSLASH_BACKSPACE
+#define BOOTMAGIC_SWAP_BACKSLASH_BACKSPACE KC_BSLASH
+#endif
+
+
+/*
+ * change default layer
+ */
#ifndef BOOTMAGIC_DEFAULT_LAYER_0_KEY
#define BOOTMAGIC_DEFAULT_LAYER_0_KEY KC_0
#endif
@@ -33,6 +68,7 @@
#define BOOTMAGIC_DEFAULT_LAYER_3_KEY KC_3
#endif
+
void bootmagic(void);
bool bootmagic_scan_keycode(uint8_t keycode);