within layer

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-02-08 20:03:57 -05:00
parent 03574b7b8c
commit 3f585bcacc
1 changed files with 221 additions and 43 deletions

View File

@ -70,28 +70,51 @@ enum custom_keycodes {
THIN_ARROW, THIN_ARROW,
NX_IH, NX_IH,
EM_MX, EM_MX,
CAD_ACT,
CAD_LIN,
CAD_DEF,
CAD_SWT,
TWI_ACT,
TWI_LIN,
TWI_DEF,
TWI_SWT,
JES_ACT,
JES_LIN,
JES_DEF,
JES_SWT,
ASH_ACT,
ASH_LIN,
ASH_DEF,
ASH_SWT,
PHI_ACT,
PHI_LIN,
PHI_DEF,
PHI_SWT,
MAI_ACT,
MAI_LIN,
MAI_DEF,
MAI_SWT,
}; };
#define COLEMAK 0 #define COLEMAK 0
#define QWERTY 1 #define QWERTY 1
#define DVORAK 2 #define SYMNUM 2
#define SYMNUM 3 #define MEDIA 3
#define MEDIA 4 #define DWM 4
#define DWM 5 #define POGBAU 5
#define STENO 6 #define WTHN 6
#define POGBAU 7
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_moonlander( [COLEMAK] = LAYOUT_moonlander(
KC_EQUAL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT, KC_RIGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT, KC_RIGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS,
KC_DELETE, KC_Q, KC_W, KC_F, KC_P, KC_B, TG(MEDIA), TG(DVORAK), KC_J, KC_L, KC_U, KC_Y, KC_SCOLON, KC_BSLASH, KC_DELETE, KC_Q, KC_W, KC_F, KC_P, KC_B, TG(MEDIA), OSL(WTHN), KC_J, KC_L, KC_U, KC_Y, KC_SCOLON, KC_BSLASH,
KC_ESCAPE, KC_A, KC_R, KC_S, KC_T, KC_G, TG(QWERTY), MO(DWM), KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOTE, KC_ESCAPE, KC_A, KC_R, KC_S, KC_T, KC_G, TG(QWERTY), MO(DWM), KC_M, KC_N, KC_E, KC_I, KC_O, KC_QUOTE,
KC_LSHIFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMMA, KC_DOT, KC_SLASH, MO(POGBAU), KC_LSHIFT, KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMMA, KC_DOT, KC_SLASH, MO(POGBAU),
MO(SYMNUM), KC_LCTRL, KC_LALT, KC_LEFT, KC_RIGHT, KC_LEAD, RCTL_T(KC_ESCAPE), KC_UP, KC_DOWN, KC_RGUI, KC_PSCREEN, MO(SYMNUM), MO(SYMNUM), KC_LCTRL, KC_LALT, KC_LEFT, KC_RIGHT, KC_LEAD, RCTL_T(KC_ESCAPE), KC_UP, KC_DOWN, KC_RGUI, KC_PSCREEN, MO(SYMNUM),
KC_SPACE, KC_BSPACE, KC_LGUI, KC_SPACE, KC_BSPACE, KC_LGUI,
KC_COLON, KC_TAB, KC_SFTENT KC_COLON, KC_TAB, KC_SFTENT
), ),
[1] = LAYOUT_moonlander( [QWERTY] = LAYOUT_moonlander(
KC_TRANSPARENT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRANSPARENT, KC_TRANSPARENT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRANSPARENT, KC_TRANSPARENT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRANSPARENT, KC_TRANSPARENT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRANSPARENT,
KC_TRANSPARENT, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_TRANSPARENT, KC_TRANSPARENT, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_TRANSPARENT, KC_TRANSPARENT, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_TRANSPARENT, KC_TRANSPARENT, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_TRANSPARENT,
KC_TRANSPARENT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_TRANSPARENT, KC_TRANSPARENT, KC_H, KC_J, KC_K, KC_L, KC_SCOLON, KC_TRANSPARENT, KC_TRANSPARENT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_TRANSPARENT, KC_TRANSPARENT, KC_H, KC_J, KC_K, KC_L, KC_SCOLON, KC_TRANSPARENT,
@ -100,16 +123,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT
), ),
[2] = LAYOUT_moonlander( [SYMNUM] = LAYOUT_moonlander(
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, KC_QUOTE, KC_COMMA, KC_DOT, KC_P, KC_Y, KC_TRANSPARENT, KC_TRANSPARENT, KC_F, KC_G, KC_C, KC_R, KC_L, KC_TRANSPARENT,
KC_TRANSPARENT, KC_A, KC_O, KC_E, KC_U, KC_I, KC_TRANSPARENT, KC_TRANSPARENT, KC_D, KC_H, KC_T, KC_N, KC_S, KC_TRANSPARENT,
KC_TRANSPARENT, KC_SCOLON, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT
),
[3] = LAYOUT_moonlander(
KC_ESCAPE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LT, KC_GT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_ESCAPE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LT, KC_GT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
KC_TRANSPARENT, KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, DYN_REC_START1, DYN_REC_START2, KC_SCROLLLOCK, KC_7, KC_8, KC_9, KC_ASTR, KC_F12, KC_TRANSPARENT, KC_EXLM, KC_AT, KC_LCBR, KC_RCBR, KC_PIPE, DYN_REC_START1, DYN_REC_START2, KC_SCROLLLOCK, KC_7, KC_8, KC_9, KC_ASTR, KC_F12,
KC_PGUP, KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRAVE, DYN_MACRO_PLAY1, DYN_MACRO_PLAY2,KC_NUMLOCK, KC_4, KC_5, KC_6, KC_KP_PLUS, KC_MINUS, KC_PGUP, KC_HASH, KC_DLR, KC_LPRN, KC_RPRN, KC_GRAVE, DYN_MACRO_PLAY1, DYN_MACRO_PLAY2,KC_NUMLOCK, KC_4, KC_5, KC_6, KC_KP_PLUS, KC_MINUS,
@ -118,8 +132,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
RGB_VAD, RGB_VAI, KC_HOME, RGB_VAD, RGB_VAI, KC_HOME,
KC_END, RGB_HUD, RGB_HUI KC_END, RGB_HUD, RGB_HUI
), ),
[4] = LAYOUT_moonlander( [MEDIA] = LAYOUT_moonlander(
AU_TOG, TO(6), KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, AU_TOG, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
MU_TOG, KC_TRANSPARENT, KC_TRANSPARENT, KC_MS_UP, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_UP, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, MU_TOG, KC_TRANSPARENT, KC_TRANSPARENT, KC_MS_UP, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_UP, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
MU_MOD, KC_TRANSPARENT, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRANSPARENT, KC_TRANSPARENT, MU_MOD, KC_TRANSPARENT, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRANSPARENT, KC_TRANSPARENT,
ST_MACRO_0, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_MEDIA_PREV_TRACK,KC_MEDIA_NEXT_TRACK,KC_MEDIA_PLAY_PAUSE,KC_TRANSPARENT, ST_MACRO_0, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_MEDIA_PREV_TRACK,KC_MEDIA_NEXT_TRACK,KC_MEDIA_PLAY_PAUSE,KC_TRANSPARENT,
@ -127,7 +141,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_MS_BTN1, KC_MS_BTN3, KC_MS_WH_DOWN, KC_MS_BTN1, KC_MS_BTN3, KC_MS_WH_DOWN,
KC_MS_WH_UP, KC_TRANSPARENT, KC_MS_BTN2 KC_MS_WH_UP, KC_TRANSPARENT, KC_MS_BTN2
), ),
[5] = LAYOUT_moonlander( [DWM] = LAYOUT_moonlander(
KC_TRANSPARENT, ST_MACRO_1, ST_MACRO_2, ST_MACRO_3, ST_MACRO_4, ST_MACRO_5, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_16, ST_MACRO_17, ST_MACRO_18, ST_MACRO_19, ST_MACRO_20, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_1, ST_MACRO_2, ST_MACRO_3, ST_MACRO_4, ST_MACRO_5, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_16, ST_MACRO_17, ST_MACRO_18, ST_MACRO_19, ST_MACRO_20, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_6, KC_TRANSPARENT, ST_MACRO_7, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_21, ST_MACRO_22, ST_MACRO_23, ST_MACRO_24, ST_MACRO_25, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_6, KC_TRANSPARENT, ST_MACRO_7, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_21, ST_MACRO_22, ST_MACRO_23, ST_MACRO_24, ST_MACRO_25, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_8, ST_MACRO_9, ST_MACRO_10, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_26, ST_MACRO_27, ST_MACRO_28, ST_MACRO_29, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_8, ST_MACRO_9, ST_MACRO_10, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_26, ST_MACRO_27, ST_MACRO_28, ST_MACRO_29, KC_TRANSPARENT,
@ -136,15 +150,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
ST_MACRO_15, KC_TRANSPARENT, KC_TRANSPARENT, ST_MACRO_15, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, ST_MACRO_33, ST_MACRO_34 KC_TRANSPARENT, ST_MACRO_33, ST_MACRO_34
), ),
[6] = LAYOUT_moonlander(
TO(0), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, STN_N1, STN_N2, STN_N3, STN_N4, STN_N5, KC_NO, KC_NO, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB,
KC_NO, STN_S1, STN_TL, STN_PL, STN_HL, STN_ST1, KC_NO, KC_NO, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR,
KC_NO, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_ST4, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
STN_A, STN_O, STN_ST2,
STN_ST3, STN_E, STN_U
),
[POGBAU] = LAYOUT_moonlander( [POGBAU] = LAYOUT_moonlander(
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, RUST_TEST, RUST_PUB_CRATE, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, NX_IH, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, RUST_TEST, RUST_PUB_CRATE, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, NX_IH, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
@ -154,6 +159,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT,
KC_TRANSPARENT, KC_TRANSPARENT, EM_MX KC_TRANSPARENT, KC_TRANSPARENT, EM_MX
), ),
[WTHN] = LAYOUT_moonlander(
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
CAD_ACT, TWI_ACT, JES_ACT, ASH_ACT, PHI_ACT, MAI_ACT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
CAD_LIN, TWI_LIN, JES_LIN, ASH_LIN, PHI_LIN, MAI_LIN, KC_NO, KC_NO, CAD_SWT, TWI_SWT, JES_SWT, ASH_SWT, PHI_SWT, MAI_SWT,
CAD_DEF, TWI_DEF, JES_DEF, ASH_DEF, PHI_DEF, MAI_DEF, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO
),
}; };
extern bool g_suspend_state; extern bool g_suspend_state;
@ -166,19 +180,17 @@ void keyboard_post_init_user(void) {
const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = { const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
[0] = { {240,235,243}, {240,235,243}, {240,235,243}, {240,108,244}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {250,159,255}, {206,237,232}, {240,235,243}, {225,127,232}, {225,127,232}, {250,159,255}, {206,237,232}, {240,235,243}, {240,235,243}, {240,235,243}, {240,235,243}, {14,222,242}, {255,220,201}, {240,235,243}, {237,252,249}, {250,159,255}, {224,255,255}, {240,235,243}, {240,235,243}, {240,235,243}, {240,108,244}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,235,243}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,235,243}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {250,159,255}, {206,237,232}, {240,235,243}, {225,127,232}, {225,127,232}, {250,159,255}, {206,237,232}, {240,235,243}, {240,235,243}, {240,235,243}, {240,235,243}, {31,255,255}, {205,255,255}, {240,235,243}, {237,252,249}, {250,159,255}, {224,255,255} }, [0] = { {240,235,243}, {240,235,243}, {240,235,243}, {240,108,244}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {250,159,255}, {206,237,232}, {240,235,243}, {225,127,232}, {225,127,232}, {250,159,255}, {206,237,232}, {240,235,243}, {240,235,243}, {240,235,243}, {240,235,243}, {14,222,242}, {255,220,201}, {240,235,243}, {237,252,249}, {250,159,255}, {224,255,255}, {240,235,243}, {240,235,243}, {240,235,243}, {240,108,244}, {240,108,244}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,235,243}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {240,235,243}, {206,237,232}, {240,235,243}, {225,127,232}, {240,235,243}, {250,159,255}, {206,237,232}, {240,235,243}, {225,127,232}, {225,127,232}, {250,159,255}, {206,237,232}, {240,235,243}, {240,235,243}, {240,235,243}, {240,235,243}, {31,255,255}, {205,255,255}, {240,235,243}, {237,252,249}, {250,159,255}, {224,255,255} },
[1] = { {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {253,255,255}, {24,211,255}, {35,255,255}, {217,255,134}, {217,255,134}, {217,255,134}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {253,255,255}, {24,211,255}, {35,255,255}, {217,255,134}, {217,255,134}, {217,255,134}, {172,255,249} }, [1] = { {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {253,255,255}, {24,211,255}, {35,255,255}, {217,255,134}, {217,255,134}, {217,255,134}, {217,255,134}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {172,255,249}, {253,255,255}, {24,211,255}, {35,255,255}, {94,255,128}, {253,255,255}, {24,211,255}, {35,255,255}, {217,255,134}, {217,255,134}, {217,255,134}, {217,255,134} },
[2] = { {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252}, {249,81,247}, {0,0,255}, {249,81,247}, {0,0,255}, {249,81,247}, {141,168,252} }, [2] = { {15,97,236}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255}, {27,126,255}, {12,225,241}, {12,225,241}, {12,225,241}, {1,218,204}, {27,126,255}, {12,225,241}, {12,225,241}, {12,225,241}, {250,159,255}, {27,126,255}, {31,255,255}, {31,255,255}, {31,255,255}, {250,159,255}, {27,126,255}, {31,255,255}, {31,255,255}, {31,255,255}, {0,0,255}, {27,126,255}, {12,225,241}, {12,225,241}, {12,225,241}, {0,183,238}, {15,176,169}, {15,176,169}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255}, {27,126,255}, {27,126,255}, {12,225,241}, {0,0,255}, {0,0,255}, {27,126,255}, {0,204,255}, {0,0,255}, {0,204,255}, {0,204,255}, {27,126,255}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255}, {27,126,255}, {0,0,255}, {0,204,255}, {0,0,255}, {0,0,255}, {27,126,255}, {0,0,255}, {0,0,255}, {0,0,255}, {250,159,255}, {27,126,255}, {0,204,255}, {0,204,255}, {12,225,241}, {0,183,238}, {15,97,236}, {15,97,236}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255} },
[3] = { {15,97,236}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255}, {27,126,255}, {12,225,241}, {12,225,241}, {12,225,241}, {1,218,204}, {27,126,255}, {12,225,241}, {12,225,241}, {12,225,241}, {250,159,255}, {27,126,255}, {31,255,255}, {31,255,255}, {31,255,255}, {250,159,255}, {27,126,255}, {31,255,255}, {31,255,255}, {31,255,255}, {0,0,255}, {27,126,255}, {12,225,241}, {12,225,241}, {12,225,241}, {0,183,238}, {15,176,169}, {15,176,169}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255}, {27,126,255}, {27,126,255}, {12,225,241}, {0,0,255}, {0,0,255}, {27,126,255}, {0,204,255}, {0,0,255}, {0,204,255}, {0,204,255}, {27,126,255}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255}, {27,126,255}, {0,0,255}, {0,204,255}, {0,0,255}, {0,0,255}, {27,126,255}, {0,0,255}, {0,0,255}, {0,0,255}, {250,159,255}, {27,126,255}, {0,204,255}, {0,204,255}, {12,225,241}, {0,183,238}, {15,97,236}, {15,97,236}, {0,0,255}, {0,0,255}, {0,0,255}, {0,0,255} }, [3] = { {0,4,224}, {0,4,224}, {0,4,224}, {31,255,255}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,4,224}, {0,6,198}, {0,6,198}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {1,218,204}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {14,222,242}, {255,220,201}, {1,218,204}, {1,218,204}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {31,255,255}, {0,6,198}, {0,6,198}, {0,6,198}, {1,218,204}, {31,255,255}, {32,255,234}, {0,6,198}, {1,218,204}, {1,218,204}, {32,255,234}, {32,255,234}, {0,6,198}, {0,6,198}, {1,218,204}, {0,6,198}, {32,255,234}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {31,255,255}, {205,255,255}, {1,218,204}, {0,6,198}, {1,218,204}, {0,6,198} },
[4] = { {0,4,224}, {0,4,224}, {0,4,224}, {31,255,255}, {0,6,198}, {222,166,195}, {0,6,198}, {0,6,198}, {0,6,198}, {0,4,224}, {0,6,198}, {0,6,198}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {1,218,204}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {14,222,242}, {255,220,201}, {1,218,204}, {1,218,204}, {1,218,204}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {31,255,255}, {0,6,198}, {0,6,198}, {0,6,198}, {1,218,204}, {31,255,255}, {32,255,234}, {0,6,198}, {1,218,204}, {1,218,204}, {32,255,234}, {32,255,234}, {0,6,198}, {0,6,198}, {1,218,204}, {0,6,198}, {32,255,234}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {0,6,198}, {85,203,158}, {205,255,255}, {1,218,204}, {0,6,198}, {1,218,204}, {0,6,198} }, [4] = { {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {30,207,250}, {43,203,187}, {30,207,250}, {19,229,254}, {112,52,165}, {0,0,0}, {4,202,251}, {0,0,0}, {19,229,254}, {112,52,165}, {4,202,251}, {134,255,213}, {134,255,213}, {0,0,0}, {14,222,242}, {255,220,201}, {4,202,251}, {0,0,0}, {0,0,0}, {43,203,187}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {30,207,250}, {43,203,187}, {0,0,0}, {0,0,0}, {112,52,165}, {4,202,251}, {43,203,187}, {0,0,0}, {0,0,0}, {112,52,165}, {43,203,187}, {43,203,187}, {0,0,0}, {19,229,254}, {112,52,165}, {4,202,251}, {43,203,187}, {4,202,251}, {19,229,254}, {112,52,165}, {134,255,213}, {0,0,0}, {0,0,0}, {0,0,0}, {31,255,255}, {205,255,255}, {30,207,250}, {112,52,165}, {0,0,0}, {0,0,0} },
[5] = { {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {30,207,250}, {43,203,187}, {30,207,250}, {19,229,254}, {112,52,165}, {0,0,0}, {4,202,251}, {0,0,0}, {19,229,254}, {112,52,165}, {4,202,251}, {134,255,213}, {134,255,213}, {0,0,0}, {14,222,242}, {255,220,201}, {4,202,251}, {0,0,0}, {0,0,0}, {43,203,187}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {112,52,165}, {30,207,250}, {43,203,187}, {0,0,0}, {0,0,0}, {112,52,165}, {4,202,251}, {43,203,187}, {0,0,0}, {0,0,0}, {112,52,165}, {43,203,187}, {43,203,187}, {0,0,0}, {19,229,254}, {112,52,165}, {4,202,251}, {43,203,187}, {4,202,251}, {19,229,254}, {112,52,165}, {134,255,213}, {0,0,0}, {0,0,0}, {0,0,0}, {85,203,158}, {205,255,255}, {30,207,250}, {112,52,165}, {0,0,0}, {0,0,0} }, [5] = { {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,183,238}, {0,183,238}, {0,0,0}, {0,0,0}, {0,183,238}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {207,149,232}, {134,142,216}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {187,131,225}, {0,0,0}, {0,0,0}, {0,0,0} },
[6] = { {0,205,155}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {250,159,255}, {14,222,242}, {14,222,242}, {0,0,0}, {0,0,0}, {250,159,255}, {255,220,201}, {255,220,201}, {0,0,0}, {0,0,0}, {250,159,255}, {233,218,217}, {233,218,217}, {0,0,0}, {0,0,0}, {250,159,255}, {205,255,255}, {205,255,255}, {0,0,0}, {0,0,0}, {250,159,255}, {31,255,255}, {31,255,255}, {0,0,0}, {0,0,0}, {0,0,0}, {255,220,201}, {233,218,217}, {31,255,255}, {0,0,0}, {0,0,0}, {250,159,255}, {14,222,242}, {14,222,242}, {0,0,0}, {0,0,0}, {250,159,255}, {14,222,242}, {14,222,242}, {0,0,0}, {0,0,0}, {250,159,255}, {255,220,201}, {255,220,201}, {0,0,0}, {0,0,0}, {250,159,255}, {233,218,217}, {233,218,217}, {0,0,0}, {0,0,0}, {250,159,255}, {205,255,255}, {205,255,255}, {0,0,0}, {0,0,0}, {250,159,255}, {31,255,255}, {31,255,255}, {0,0,0}, {0,0,0}, {0,0,0}, {255,220,201}, {233,218,217}, {31,255,255}, {0,0,0} }, [6] = { {0,0,0}, {240,235,243}, {240,235,243}, {240,235,243}, {0,0,0}, {0,0,0}, {203,68,215}, {203,68,215}, {203,68,215}, {0,0,0}, {0,0,0}, {94,255,128}, {94,255,128}, {94,255,128}, {0,0,0}, {0,0,0}, {172,255,249}, {172,255,249}, {172,255,249}, {0,0,0}, {0,0,0}, {31,255,255}, {31,255,255}, {31,255,255}, {0,0,0}, {0,0,0}, {14,255,255}, {14,255,255}, {14,255,255}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {14,255,255}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {31,255,255}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {172,255,249}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {94,255,128}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {203,68,215}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {240,235,243}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0} },
[POGBAU] = { {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,183,238}, {0,183,238}, {0,0,0}, {0,0,0}, {0,183,238}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,183,238}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {207,149,232}, {134,142,216}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {187,131,225}, {0,0,0}, {0,0,0}, {0,0,0} },
}; };
void set_layer_color(int layer) { void set_layer_color(int layer) {
@ -198,6 +210,22 @@ void set_layer_color(int layer) {
} }
} }
#define CAD 0
#define TWI 1
#define JES 2
#define ASH 3
#define PHI 4
#define MAI 5
const char PROGMEM within[6][7] = {
[CAD] = "Cadey",
[TWI] = "Nicole",
[JES] = "Jessie",
[ASH] = "Ashe",
[PHI] = "Sephie",
[MAI] = "Mai",
};
void rgb_matrix_indicators_user(void) { void rgb_matrix_indicators_user(void) {
if (g_suspend_state || keyboard_config.disable_layer_led) { return; } if (g_suspend_state || keyboard_config.disable_layer_led) { return; }
switch (biton32(layer_state)) { switch (biton32(layer_state)) {
@ -513,6 +541,157 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING(SS_LALT("x")); SEND_STRING(SS_LALT("x"));
} }
return false;
case CAD_ACT:
if (record->event.pressed) {
SEND_STRING("\\");
send_string(within[CAD]);
SEND_STRING(" ");
}
return false;
case CAD_LIN:
if (record->event.pressed) {
send_string(within[CAD]);
SEND_STRING("\\ ");
}
return false;
case CAD_DEF:
if (record->event.pressed) {
SEND_STRING("((");
send_string(within[CAD]);
SEND_STRING("))");
}
return false;
case CAD_SWT:
if (record->event.pressed) {
// do_switch(CAD);
}
return false;
case TWI_ACT:
if (record->event.pressed) {
SEND_STRING("\\");
send_string(within[TWI]);
SEND_STRING(" ");
}
return false;
case TWI_LIN:
if (record->event.pressed) {
send_string(within[TWI]);
SEND_STRING("\\ ");
}
return false;
case TWI_DEF:
if (record->event.pressed) {
SEND_STRING("((");
send_string(within[TWI]);
SEND_STRING("))");
}
return false;
case TWI_SWT:
if (record->event.pressed) {
// do_switch(TWI);
}
return false;
case JES_ACT:
if (record->event.pressed) {
SEND_STRING("\\");
send_string(within[JES]);
SEND_STRING(" ");
}
return false;
case JES_LIN:
if (record->event.pressed) {
send_string(within[JES]);
SEND_STRING("\\ ");
}
return false;
case JES_DEF:
if (record->event.pressed) {
SEND_STRING("((");
send_string(within[JES]);
SEND_STRING("))");
}
return false;
case JES_SWT:
if (record->event.pressed) {
// do_switch(JES);
}
return false;
case ASH_ACT:
if (record->event.pressed) {
SEND_STRING("\\");
send_string(within[ASH]);
SEND_STRING(" ");
}
return false;
case ASH_LIN:
if (record->event.pressed) {
send_string(within[ASH]);
SEND_STRING("\\ ");
}
return false;
case ASH_DEF:
if (record->event.pressed) {
SEND_STRING("((");
send_string(within[ASH]);
SEND_STRING("))");
}
return false;
case ASH_SWT:
if (record->event.pressed) {
// do_switch(ASH);
}
return false;
case PHI_ACT:
if (record->event.pressed) {
SEND_STRING("\\");
send_string(within[PHI]);
SEND_STRING(" ");
}
return false;
case PHI_LIN:
if (record->event.pressed) {
send_string(within[PHI]);
SEND_STRING("\\ ");
}
return false;
case PHI_DEF:
if (record->event.pressed) {
SEND_STRING("((");
send_string(within[PHI]);
SEND_STRING("))");
}
return false;
case PHI_SWT:
if (record->event.pressed) {
// do_switch(PHI);
}
return false;
case MAI_ACT:
if (record->event.pressed) {
SEND_STRING("\\");
send_string(within[MAI]);
SEND_STRING(" ");
}
return false;
case MAI_LIN:
if (record->event.pressed) {
send_string(within[MAI]);
SEND_STRING("\\ ");
}
return false;
case MAI_DEF:
if (record->event.pressed) {
SEND_STRING("((");
send_string(within[MAI]);
SEND_STRING("))");
}
return false;
case MAI_SWT:
if (record->event.pressed) {
// do_switch(MAI);
}
return false;
} }
return true; return true;
} }
@ -527,16 +706,15 @@ layer_state_t layer_state_set_user(layer_state_t state) {
break; break;
case QWERTY: case QWERTY:
break; break;
case DVORAK:
break;
case SYMNUM: case SYMNUM:
break; break;
case MEDIA: case MEDIA:
break; break;
case DWM: case DWM:
break; break;
case STENO: case POGBAU:
PLAY_SONG(sonic_ring); break;
case WTHN:
break; break;
} }