2018-09-13 09:40:43 -07:00
|
|
|
#include QMK_KEYBOARD_H
|
2017-09-06 09:48:21 -07:00
|
|
|
|
|
|
|
extern keymap_config_t keymap_config;
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2018-06-14 19:29:15 -07:00
|
|
|
[0] = LAYOUT_arrow_command( /* Qwerty */
|
2022-10-20 18:04:11 -07:00
|
|
|
QK_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
2017-10-25 16:01:47 -07:00
|
|
|
LT(2, KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, LT(2, KC_ENT),
|
|
|
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, MT(MOD_RSFT, KC_SLSH),
|
2018-07-03 16:17:39 -07:00
|
|
|
KC_LCTL, KC_LGUI, KC_LALT, MO(3), LT(1, KC_SPC), LT(1, KC_SPC), MO(4), KC_LEFT, KC_DOWN, KC_RIGHT
|
2017-09-06 09:48:21 -07:00
|
|
|
),
|
2018-06-14 19:29:15 -07:00
|
|
|
[1] = LAYOUT_arrow_command( /* LAYER 2 */
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
|
2019-08-25 08:43:47 -07:00
|
|
|
KC_TRNS, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_QUOT, KC_TRNS,
|
2017-10-25 16:01:47 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_PGUP, KC_BSLS,
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
|
|
|
|
),
|
2018-06-14 19:29:15 -07:00
|
|
|
[2] = LAYOUT_arrow_command( /* LAYER 1 */
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
|
2019-08-25 08:43:47 -07:00
|
|
|
KC_TRNS, KC_UNDS, KC_PLUS, KC_COLN, KC_DQUO, KC_TRNS, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_DQUO, KC_TRNS,
|
2017-10-25 16:01:47 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_PGUP, KC_PIPE,
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
|
|
|
|
),
|
2018-06-14 19:29:15 -07:00
|
|
|
[3] = LAYOUT_arrow_command( /* LAYER 3 */
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS,
|
2018-02-08 08:55:51 -08:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_F11, KC_F12, KC_TRNS, KC_TRNS,
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
),
|
2018-06-14 19:29:15 -07:00
|
|
|
[4] = LAYOUT_arrow_command( /* Gaming Layer*/
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WH_U, KC_BTN1, KC_MS_U, KC_BTN2, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WH_D, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, KC_TRNS,
|
2019-08-25 08:43:47 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, LT(5, KC_SLSH),
|
2017-09-06 09:48:21 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPACE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
2019-08-25 08:43:47 -07:00
|
|
|
),
|
2022-08-21 15:55:30 -07:00
|
|
|
[5] = LAYOUT_arrow_command( /* QK_BOOT Layer*/
|
|
|
|
QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
2019-08-25 08:43:47 -07:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
2017-09-06 09:48:21 -07:00
|
|
|
)
|
|
|
|
};
|
2019-08-25 08:43:47 -07:00
|
|
|
|
|
|
|
void keyboard_post_init_user(void) {
|
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
// Set up RGB effects on _only_ the third LED (index 2)
|
|
|
|
rgblight_set_effect_range(2, 1);
|
|
|
|
// Set LED effects to breathing mode in a tealish blue color
|
|
|
|
rgblight_sethsv_noeeprom(185, 255, 255);
|
|
|
|
rgblight_mode_noeeprom(RGBLIGHT_EFFECT_BREATHING + 2);
|
|
|
|
|
|
|
|
// Init the first two LEDs to a static color
|
|
|
|
setrgb(0, 0, 0, (LED_TYPE *)&led[0]);
|
|
|
|
setrgb(0, 0, 0, (LED_TYPE *)&led[1]);
|
|
|
|
rgblight_set();
|
|
|
|
#endif //RGBLIGHT_ENABLE
|
|
|
|
}
|
|
|
|
|
2021-07-19 09:50:55 -07:00
|
|
|
layer_state_t layer_state_set_user(layer_state_t state){
|
2019-08-25 08:43:47 -07:00
|
|
|
#ifdef RGBLIGHT_ENABLE
|
|
|
|
uint8_t led0r = 0; uint8_t led0g = 0; uint8_t led0b = 0;
|
|
|
|
uint8_t led1r = 0; uint8_t led1g = 0; uint8_t led1b = 0;
|
|
|
|
|
|
|
|
if (layer_state_cmp(state, 1)) {
|
|
|
|
led0r = 255;
|
|
|
|
}
|
|
|
|
if (layer_state_cmp(state, 2)) {
|
|
|
|
led0g = 255;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (layer_state_cmp(state, 4)) {
|
|
|
|
led1b = 255;
|
|
|
|
}
|
|
|
|
if (layer_state_cmp(state, 5)) {
|
|
|
|
led1r = 255;
|
|
|
|
}
|
|
|
|
|
|
|
|
setrgb(led0r, led0g, led0b, (LED_TYPE *)&led[0]);
|
|
|
|
setrgb(led1r, led1g, led1b, (LED_TYPE *)&led[1]);
|
|
|
|
rgblight_set();
|
|
|
|
#endif //RGBLIGHT_ENABLE
|
|
|
|
return state;
|
|
|
|
}
|