|
|
@ -7,6 +7,12 @@
|
|
|
|
#define SYMB 1 // symbols
|
|
|
|
#define SYMB 1 // symbols
|
|
|
|
#define MDIA 2 // media keys
|
|
|
|
#define MDIA 2 // media keys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum custom_keycodes {
|
|
|
|
|
|
|
|
PLACEHOLDER = SAFE_RANGE, // can always be here
|
|
|
|
|
|
|
|
RGB_FF00BB // always start with RGB_
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/* Keymap 0: Basic layer
|
|
|
|
/* Keymap 0: Basic layer
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -67,22 +73,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
* ,-------------. ,-------------.
|
|
|
|
* ,-------------. ,-------------.
|
|
|
|
* | | | | | |
|
|
|
|
* | | | | | |
|
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* | | | | | | | |
|
|
|
|
* |VAI |VAD |HUI | |SAI |TOG |MOD |
|
|
|
|
* | | |------| |------| | |
|
|
|
|
* | | |------| |------| | |
|
|
|
|
* | | | | | | | |
|
|
|
|
* | | |HUD | |SAD | | |
|
|
|
|
* `--------------------' `--------------------'
|
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
// SYMBOLS
|
|
|
|
// SYMBOLS
|
|
|
|
[SYMB] = KEYMAP(
|
|
|
|
[SYMB] = KEYMAP(
|
|
|
|
// left hand
|
|
|
|
// left hand
|
|
|
|
KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS,
|
|
|
|
RGB_FF00BB, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, 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_1, KC_2, KC_3, KC_4, KC_5,
|
|
|
|
KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5,
|
|
|
|
KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
|
|
|
|
KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,KC_TRNS,LCTL(KC_PGUP), LCTL(KC_PGDN),
|
|
|
|
KC_TRNS, KC_TRNS,KC_TRNS,LCTL(KC_PGUP), LCTL(KC_PGDN),
|
|
|
|
KC_TRNS,KC_TRNS,
|
|
|
|
KC_TRNS,KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
RGB_HUI,
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
RGB_VAI,RGB_VAD,RGB_HUD,
|
|
|
|
// right hand
|
|
|
|
// right hand
|
|
|
|
KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
|
|
|
KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_F12,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_F12,
|
|
|
@ -90,8 +96,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
KC_TRNS, KC_PIPE, KC_AT, KC_EQL, KC_PERC, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_PIPE, KC_AT, KC_EQL, KC_PERC, 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,
|
|
|
|
RGB_SAI,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
RGB_SAD, RGB_TOG, RGB_MOD
|
|
|
|
),
|
|
|
|
),
|
|
|
|
/* Keymap 2: Media and mouse keys
|
|
|
|
/* Keymap 2: Media and mouse keys
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -152,6 +158,22 @@ void matrix_init_user(void) {
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
|
|
|
|
switch (keycode) {
|
|
|
|
|
|
|
|
// dynamically generate these.
|
|
|
|
|
|
|
|
case RGB_FF00BB:
|
|
|
|
|
|
|
|
if (record->event.pressed) {
|
|
|
|
|
|
|
|
rgblight_enable();
|
|
|
|
|
|
|
|
rgblight_mode(1);
|
|
|
|
|
|
|
|
rgblight_setrgb(0xff,0x00,0xbb);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
LEADER_EXTERNS();
|
|
|
|
LEADER_EXTERNS();
|
|
|
|
|
|
|
|
|
|
|
|
// Runs constantly in the background, in a loop.
|
|
|
|
// Runs constantly in the background, in a loop.
|
|
|
|