1 #include QMK_KEYBOARD_H
3 extern keymap_config_t keymap_config;
6 //Following line allows macro to read current RGB settings
7 extern rgblight_config_t rgblight_config;
8 rgblight_config_t RGB_current_config;
16 enum custom_keycodes {
22 // Fillers to make layering more clear
23 #define EISU LALT(KC_GRV)
25 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 * ,-------------------------------------------------------. ,--------------------------------------------------------.
29 * | F3 | F4 | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ | ] | Bksp |
30 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
31 * | F5 | F6 | Esc | A | S | D | F | G | | H | J | K | L | ; | " | Enter| Enter|
32 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
33 * | F7 | F8 | Shift| Z | X | C | V | B | | N | M | , | . | / | \ | Up | Shift|
34 * `-------------------------------------------------------' `-------------------------------------------------------'
37 KC_F3, KC_F4, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC,
38 KC_F5, KC_F6, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_ENT,
39 KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS, KC_UP, KC_RSFT
43 * ,-------------------------------------------------------. ,--------------------------------------------------------.
44 * | | | |RGBRST| RESET| | | | | | | | | | | | |
45 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
46 * | | | | TOG | HUI | SAI | VAI | | | | | | | | | | |
47 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
48 * | | | | MOD | HUD | SAD | VAD | | | | | | | | | | |
49 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
50 * | | | | | | | | | | | | | | | | | |
51 * `-------------------------------------------------------' `-------------------------------------------------------'
54 _______, _______, _______, RGBRST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
55 _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, _______,
56 _______, _______, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______
60 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
63 if (record->event.pressed) {
64 print("mode just switched to qwerty and this is a huge string\n");
65 set_single_persistent_default_layer(_QWERTY);
70 if (record->event.pressed) {
78 #ifdef RGBLIGHT_ENABLE
79 if (record->event.pressed) {
80 eeconfig_update_rgblight_default();
82 RGB_current_config = rgblight_config;