aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/monsgeek/m1/m1.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/monsgeek/m1/m1.c')
-rw-r--r--keyboards/monsgeek/m1/m1.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/keyboards/monsgeek/m1/m1.c b/keyboards/monsgeek/m1/m1.c
index 2f7365e562..6466b55412 100644
--- a/keyboards/monsgeek/m1/m1.c
+++ b/keyboards/monsgeek/m1/m1.c
@@ -15,7 +15,7 @@
*/
#include "quantum.h"
-
+// clang-format off
#ifdef RGB_MATRIX_ENABLE
const snled27351_led_t PROGMEM g_snled27351_leds[SNLED27351_LED_COUNT] = {
/* Refer to SNLED27351 manual for these locations
@@ -165,34 +165,13 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
}
#endif
-enum __layers {
- WIN_B,
- WIN_W,
- WIN_FN,
- MAC_B,
- MAC_W,
- MAC_FN
-};
+// clang-format on
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
if (!process_record_user(keycode, record)) {
return false;
}
switch (keycode) {
- case DF(WIN_B):
- if (record->event.pressed) {
- set_single_persistent_default_layer(WIN_B);
- layer_state_set(1<<WIN_B);
- }
- return false;
- case DF(MAC_B):
- if (record->event.pressed) {
- set_single_persistent_default_layer(MAC_B);
- layer_state_set(1<<MAC_B);
- keymap_config.no_gui = 0;
- eeconfig_update_keymap(&keymap_config);
- }
- return false;
case QK_RGB_MATRIX_TOGGLE:
if (record->event.pressed) {
switch (rgb_matrix_get_flags()) {