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 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ |
30 * |------+------+------+------+------+------| |------+------+------+------+------+------|
31 * | Esc | A | S | D | F | G | | H | J | K | L | ; | " |
32 * |------+------+------+------+------+------| |------+------+------+------+------+------|
33 * | Shift| Z | X | C | V | B | | N | M | , | . | / | \ |
34 * |------+------+------+------+------+------| |------+------+------+------+------+------|
35 * | Ctrl | GUI | Alt | EISU | Del | Space| | Enter| Bksp | EISU | ESC |Adjust| Left |
36 * `-----------------------------------------' `-----------------------------------------'
39 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,
40 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
41 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_BSLS,
42 KC_LCTL, KC_LGUI, KC_LALT, EISU, KC_DEL, KC_SPC, KC_ENT, KC_BSPC, EISU, KC_ESC, ADJUST, KC_LEFT
46 * ,-----------------------------------------. ,-----------------------------------------.
47 * | |RGBRST| RESET| | | | | | | | | | |
48 * |------+------+------+------+------+------| |------+------+------+------+------+------|
49 * | | TOG | HUI | SAI | VAI | | | | | | | | |
50 * |------+------+------+------+------+------| |------+------+------+------+------+------|
51 * | | MOD | HUD | SAD | VAD | | | | | | | | |
52 * |------+------+------+------+------+------| |------+------+------+------+------+------|
53 * | | | | | | | | | | | | | |
54 * `-----------------------------------------' `-----------------------------------------'
57 _______, RGBRST, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______,
58 _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______,
59 _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______,
60 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
64 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
67 if (record->event.pressed) {
68 print("mode just switched to qwerty and this is a huge string\n");
69 set_single_persistent_default_layer(_QWERTY);
74 if (record->event.pressed) {
82 #ifdef RGBLIGHT_ENABLE
83 if (record->event.pressed) {
84 eeconfig_update_rgblight_default();
86 RGB_current_config = rgblight_config;