2018-09-13 18:40:43 +02:00
|
|
|
#include QMK_KEYBOARD_H
|
2017-09-06 18:48:21 +02:00
|
|
|
|
|
|
|
extern keymap_config_t keymap_config;
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2018-06-15 04:29:15 +02:00
|
|
|
[0] = LAYOUT_arrow_command( /* Qwerty */
|
2017-10-26 01:01:47 +02:00
|
|
|
KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
|
|
|
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-04 01:17:39 +02: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 18:48:21 +02:00
|
|
|
),
|
2018-06-15 04:29:15 +02:00
|
|
|
[1] = LAYOUT_arrow_command( /* LAYER 2 */
|
2017-09-06 18:48:21 +02: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 17:43:47 +02: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-26 01:01:47 +02: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 18:48:21 +02:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
|
|
|
|
),
|
2018-06-15 04:29:15 +02:00
|
|
|
[2] = LAYOUT_arrow_command( /* LAYER 1 */
|
2017-09-06 18:48:21 +02: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 17:43:47 +02: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-26 01:01:47 +02: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 18:48:21 +02:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
|
|
|
|
),
|
2018-06-15 04:29:15 +02:00
|
|
|
[3] = LAYOUT_arrow_command( /* LAYER 3 */
|
2017-09-06 18:48:21 +02: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 17:55:51 +01: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 18:48:21 +02: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-15 04:29:15 +02:00
|
|
|
[4] = LAYOUT_arrow_command( /* Gaming Layer*/
|
2017-09-06 18:48:21 +02: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 17:43:47 +02: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 18:48:21 +02:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPACE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
2019-08-25 17:43:47 +02:00
|
|
|
),
|
|
|
|
[5] = LAYOUT_arrow_command( /* RESET Layer*/
|
|
|
|
RESET, 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, 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 18:48:21 +02:00
|
|
|
)
|
|
|
|
};
|
2019-08-25 17:43:47 +02: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
|
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t layer_state_set_user(uint32_t state){
|
|
|
|
#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;
|
|
|
|
}
|