#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_split_3x6_3(
LGUI_T(KC_RBRC), KC_Q, KC_W, KC_E, KC_R, KC_T,   KC_Y, KC_U, KC_I,    KC_O,   KC_P,    RGUI_T(KC_LBRC),
LCTL_T(KC_GRV),  KC_A, KC_S, KC_D, KC_F, KC_G,   KC_H, KC_J, KC_K,    KC_L,   KC_SCLN, RCTL_T(KC_QUOT),
LALT_T(KC_BSLS), KC_Z, KC_X, KC_C, KC_V, KC_B,   KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RALT_T(KC_MINUS),
   LT(2,KC_TAB), LSFT_T(KC_SPC), LT(1,KC_ENT),   LT(1,KC_ESC), RSFT_T(KC_BSPC), LT(2,KC_DEL)
),
[1] = LAYOUT_split_3x6_3(
LGUI_T(KC_F1),   KC_F2,   KC_F3, KC_F4,   KC_F5,  KC_F6,     KC_F7,   KC_F8,   KC_F9,   KC_F10,  KC_F11,  RGUI_T(KC_F12),
LCTL_T(KC_PPLS), KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC,   KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_UNDS,
LALT_T(KC_EQL),  KC_1,    KC_2,  KC_3,    KC_4,   KC_5,      KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    RALT_T(KC_MINS),
                            LT(3, KC_TAB),_______,_______,   _______,_______,LT(3, KC_DEL)
),
[2] = LAYOUT_split_3x6_3(
LGUI_T(KC_NLCK), KC_PSLS, KC_P7, KC_P8, KC_P9, TO(3),     KC_MS_WH_UP,   KC_HOME, KC_MPLY, KC_PGUP, KC_VOLU, RGUI_T(KC_CAPS),
LCTL_T(KC_PPLS), KC_PAST, KC_P4, KC_P5, KC_P6, KC_PMNS,   KC_LEFT,       KC_DOWN, KC_UP,   KC_RGHT, KC_VOLD, RCTL_T(KC_APP),
LALT_T(KC_EQL),  KC_P0,   KC_P1, KC_P2, KC_P3, KC_PDOT,   KC_MS_WH_DOWN, KC_END,  KC_PSCR, KC_PGDN, KC_MUTE, KC_RALT,
                        _______, _______, LT(3,KC_ENT),   LT(3,KC_ESC), _______, _______
),
[3] = LAYOUT_split_3x6_3(
LGUI_T(KC_SLCK), RGB_VAI, KC_MS_BTN1, KC_MS_UP,   KC_MS_BTN2,  KC_MS_WH_UP,     KC_MS_WH_UP,   KC_MS_BTN1, KC_MS_UP,   KC_MS_BTN2,  BL_INC,  KC_RGUI,
LCTL_T(KC_PAUS), RGB_VAD, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_MS_BTN3,      KC_MS_BTN3,    KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, BL_DEC,  KC_RCTL,
LALT_T(KC_INS),  RGB_TOG,   RESET,      TO(2),      TO(1),     KC_MS_WH_DOWN,   KC_MS_WH_DOWN, TO(1),      TO(2),      RESET,       BL_TOGG, KC_RALT,
                                                   _______, KC_LSFT, _______,   _______, KC_RSFT, _______
)
};