cosmo layer

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-09-11 09:12:11 -04:00
parent 79d54b47a4
commit 34ea3dee83
1 changed files with 20 additions and 5 deletions

View File

@ -99,10 +99,11 @@ enum custom_keycodes {
#define POGBAU 5 #define POGBAU 5
#define WTHN 6 #define WTHN 6
#define STENO 7 #define STENO 7
#define COSMO 8
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[COLEMAK] = LAYOUT_moonlander( [COLEMAK] = LAYOUT_moonlander(
KC_EQUAL, KC_1, KC_2, KC_3, KC_4, KC_5, TG(STENO), TG(STENO), KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_1, KC_2, KC_3, KC_4, KC_5, TG(COSMO), TG(STENO), 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), OSL(WTHN), 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),
@ -166,13 +167,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
), ),
[STENO] = LAYOUT_moonlander( [STENO] = LAYOUT_moonlander(
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, 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_TRANSPARENT, KC_TRANSPARENT, 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_N1, STN_N2, STN_N3, STN_N4, STN_N5, KC_NO, STN_N6, STN_N7, STN_N8, STN_N9, STN_NA, STN_NB, KC_NO,
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_S1, STN_TL, STN_PL, STN_HL, STN_ST1, KC_NO, STN_ST3, STN_FR, STN_PR, STN_LR, STN_TR, STN_DR, KC_NO,
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, STN_S2, STN_KL, STN_WL, STN_RL, STN_ST2, STN_RR, STN_BR, STN_GR, STN_SR, STN_ZR, KC_NO,
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, STN_NA, STN_NB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, STN_NA, STN_NB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
STN_A, STN_O, STN_ST2, STN_A, STN_O, STN_ST2,
STN_ST3, STN_E, STN_U STN_ST3, STN_E, STN_U
), ),
[COSMO] = LAYOUT_moonlander(
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, KC_NO,
KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, KC_NO, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, 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, KC_NO, KC_NO,
KC_LALT, KC_LCTRL, KC_NO,
KC_NO, KC_F12, KC_ENTER
),
}; };
extern bool g_suspend_state; extern bool g_suspend_state;
@ -197,7 +207,9 @@ const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
[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}, {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}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {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}, {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}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0} },
[7] = { {34,52,251}, {34,52,251}, {34,52,251}, {34,52,251}, {34,52,251}, {34,52,251}, {1,218,204}, {31,255,255}, {31,255,255}, {34,52,251}, {34,52,251}, {1,218,204}, {134,142,216}, {134,142,216}, {34,52,251}, {34,52,251}, {1,218,204}, {246,93,211}, {238,113,177}, {34,52,251}, {34,52,251}, {1,218,204}, {87,86,157}, {87,86,157}, {34,52,251}, {34,52,251}, {1,218,204}, {42,211,152}, {42,211,152}, {34,52,251}, {34,52,251}, {34,52,251}, {87,86,157}, {238,113,177}, {42,211,152}, {1,218,204}, {34,52,251}, {1,218,204}, {31,255,255}, {31,255,255}, {34,52,251}, {34,52,251}, {1,218,204}, {134,142,216}, {134,142,216}, {34,52,251}, {34,52,251}, {1,218,204}, {238,113,177}, {238,113,177}, {34,52,251}, {34,52,251}, {1,218,204}, {87,86,157}, {87,86,157}, {34,52,251}, {34,52,251}, {1,218,204}, {87,86,157}, {87,86,157}, {34,52,251}, {34,52,251}, {1,218,204}, {42,211,152}, {42,211,152}, {34,52,251}, {34,52,251}, {34,52,251}, {87,86,157}, {238,113,177}, {42,211,152}, {1,218,204} }, [7] = { {34,52,251}, {34,52,251}, {34,52,251}, {34,52,251}, {34,52,251}, {34,52,251}, {1,218,204}, {31,255,255}, {31,255,255}, {34,52,251}, {34,52,251}, {1,218,204}, {134,142,216}, {134,142,216}, {34,52,251}, {34,52,251}, {1,218,204}, {246,93,211}, {238,113,177}, {34,52,251}, {34,52,251}, {1,218,204}, {87,86,157}, {87,86,157}, {34,52,251}, {34,52,251}, {1,218,204}, {42,211,152}, {42,211,152}, {34,52,251}, {34,52,251}, {34,52,251}, {87,86,157}, {238,113,177}, {42,211,152}, {1,218,204}, {34,52,251}, {34,52,251}, {34,52,251}, {0,0,0}, {34,52,251}, {34,52,251}, {1,218,204}, {31,255,255}, {31,255,255}, {34,52,251}, {34,52,251}, {1,218,204}, {134,142,216}, {134,142,216}, {34,52,251}, {34,52,251}, {1,218,204}, {238,113,177}, {238,113,177}, {34,52,251}, {34,52,251}, {1,218,204}, {87,86,157}, {87,86,157}, {34,52,251}, {34,52,251}, {1,218,204}, {87,86,157}, {87,86,157}, {34,52,251}, {1,218,204}, {42,211,152}, {87,86,157}, {238,113,177}, {42,211,152}, {1,218,204} },
[8] = { {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {88,128,187}, {147,138,251}, {147,138,251}, {147,138,251}, {88,128,187}, {88,128,187}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {88,128,187}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {0,241,185}, {0,241,185}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {88,128,187}, {147,138,251}, {147,138,251}, {147,138,251}, {88,128,187}, {88,128,187}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {88,128,187}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {147,138,251}, {124,183,224}, {124,183,224}, {147,138,251}, {147,138,251} },
}; };
void set_layer_color(int layer) { void set_layer_color(int layer) {
@ -260,6 +272,9 @@ void rgb_matrix_indicators_user(void) {
case 7: case 7:
set_layer_color(7); set_layer_color(7);
break; break;
case 8:
set_layer_color(8);
break;
default: default:
if (rgb_matrix_get_flags() == LED_FLAG_NONE) if (rgb_matrix_get_flags() == LED_FLAG_NONE)
rgb_matrix_set_color_all(0, 0, 0); rgb_matrix_set_color_all(0, 0, 0);