skeletyl: rgb layer colors
This commit is contained in:
parent
bf29d94755
commit
422e1a1f21
1 changed files with 15 additions and 15 deletions
|
@ -4,30 +4,30 @@
|
||||||
// rgb
|
// rgb
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
rgblight_enable_noeeprom(); // Enables RGB, without saving settings
|
rgblight_enable_noeeprom(); // Enables RGB, without saving settings
|
||||||
rgblight_sethsv(4, 75, 150); // warmweiß (werte = farbton, sättigung, helligkeit)
|
rgblight_sethsv(4, 75, 150); // warmhite (werte = hue, saturation, value)
|
||||||
rgblight_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
|
rgblight_mode_noeeprom(RGB_MATRIX_SOLID_COLOR);
|
||||||
}
|
}
|
||||||
// Layer indicator on all keys
|
// Layer indicator on all keys
|
||||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
|
||||||
for (uint8_t i = led_min; i < led_max; i++) {
|
for (uint8_t i = led_min; i < led_max; i++) {
|
||||||
switch(get_highest_layer(layer_state|default_layer_state)) {
|
switch(get_highest_layer(layer_state|default_layer_state)) {
|
||||||
case 5:
|
case 1:
|
||||||
rgb_matrix_set_color(i, RGB_TURQUOISE);
|
rgblight_sethsv(4, 75, 150); // warmwhite
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
rgb_matrix_set_color(i, RGB_GREEN);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
rgb_matrix_set_color(i, RGB_BLUE);
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
rgb_matrix_set_color(i, RGB_RED);
|
rgblight_sethsv(39, 100, 50); // orange
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 3:
|
||||||
rgb_matrix_set_color(i, RGB_WHITE);
|
rgblight_sethsv(219, 96, 41); // blue
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
rgblight_sethsv(120, 45, 59); // green
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
rgblight_sethsv(55, 80, 60); // yellow
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
rgblight_sethsv(4, 75, 150);
|
rgblight_sethsv(4, 75, 150); // warmwhite
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
DE_Y, LT(0,KC_X), LT(0,KC_C), LSFT_T(KC_D), LT(0,KC_V), KC_K, LSFT_T(KC_H), DE_COMM, DE_DOT, DE_MINS,
|
DE_Y, LT(0,KC_X), LT(0,KC_C), LSFT_T(KC_D), LT(0,KC_V), KC_K, LSFT_T(KC_H), DE_COMM, DE_DOT, DE_MINS,
|
||||||
XXXXXXX, LT(3, KC_DEL), LT(2, KC_ENT), LT(1, KC_SPC), OSL(3), XXXXXXX
|
XXXXXXX, LT(3, KC_DEL), LT(2, KC_ENT), LT(1, KC_SPC), OSL(3), XXXXXXX
|
||||||
),
|
),
|
||||||
// Zahlen - red
|
// Zahlen - orange
|
||||||
[1] = LAYOUT_split_3x5_3(
|
[1] = LAYOUT_split_3x5_3(
|
||||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_BSPC,
|
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_BSPC,
|
||||||
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
|
||||||
|
@ -102,7 +102,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
XXXXXXX, KC_END, KC_PGDN, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGDN, XXXXXXX, KC_END, XXXXXXX,
|
XXXXXXX, KC_END, KC_PGDN, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGDN, XXXXXXX, KC_END, XXXXXXX,
|
||||||
XXXXXXX, _______, _______, _______, _______, XXXXXXX
|
XXXXXXX, _______, _______, _______, _______, XXXXXXX
|
||||||
),
|
),
|
||||||
// Media - turkis/TURQUOISE
|
// Media - yellow
|
||||||
[4] = LAYOUT_split_3x5_3(
|
[4] = LAYOUT_split_3x5_3(
|
||||||
RGB_TOG, RGB_HUI, RGB_HUD, KC_PSCR, KC_VOLU, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, QK_CAPS_WORD_TOGGLE,
|
RGB_TOG, RGB_HUI, RGB_HUD, KC_PSCR, KC_VOLU, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, QK_CAPS_WORD_TOGGLE,
|
||||||
RGB_MOD, RGB_SAI, RGB_SAD, XXXXXXX, KC_MUTE, KC_MUTE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
RGB_MOD, RGB_SAI, RGB_SAD, XXXXXXX, KC_MUTE, KC_MUTE, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||||
|
|
Loading…
Reference in a new issue