the grave key
This commit is contained in:
parent
7781d7552c
commit
127dcdd227
1 changed files with 17 additions and 17 deletions
|
|
@ -33,7 +33,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
[_LOWER] = LAYOUT(
|
[_LOWER] = LAYOUT(
|
||||||
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐
|
||||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
QK_BOOT, KC_1, KC_2, KC_UP, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
QK_BOOT, KC_1, KC_2, KC_UP, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
||||||
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤
|
||||||
|
|
@ -115,30 +115,30 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Light LEDs 9 & 10 in cyan when keyboard layer 1 is active
|
// Light LEDs 9 & 10 in cyan when keyboard layer 1 is active
|
||||||
const rgblight_segment_t PROGMEM numnav_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
/* const rgblight_segment_t PROGMEM numnav_layer[] = RGBLIGHT_LAYER_SEGMENTS( */
|
||||||
{9, 2, HSV_CYAN}
|
/* {9, 2, HSV_CYAN} */
|
||||||
);
|
/* ); */
|
||||||
// Light LEDs 11 & 12 in purple when keyboard layer 2 is active
|
// Light LEDs 11 & 12 in purple when keyboard layer 2 is active
|
||||||
const rgblight_segment_t PROGMEM extra_layer[] = RGBLIGHT_LAYER_SEGMENTS(
|
/* const rgblight_segment_t PROGMEM extra_layer[] = RGBLIGHT_LAYER_SEGMENTS( */
|
||||||
{11, 2, HSV_PURPLE}
|
/* {11, 2, HSV_PURPLE} */
|
||||||
);
|
/* ); */
|
||||||
|
|
||||||
// Now define the array of layers. Later layers take precedence
|
// Now define the array of layers. Later layers take precedence
|
||||||
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
|
/* const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST( */
|
||||||
numnav_layer, // Overrides caps lock layer
|
/* numnav_layer, // Overrides caps lock layer */
|
||||||
extra_layer // Overrides other layers
|
/* extra_layer // Overrides other layers */
|
||||||
);
|
/* ); */
|
||||||
|
|
||||||
void keyboard_post_init_user(void) {
|
void keyboard_post_init_user(void) {
|
||||||
// Enable the LED layers
|
// Enable the LED layers
|
||||||
rgblight_layers = my_rgb_layers;
|
/* rgblight_layers = my_rgb_layers; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
/* layer_state_t layer_state_set_user(layer_state_t state) { */
|
||||||
|
|
||||||
rgblight_set_layer_state(0, layer_state_cmp(state, _LOWER));
|
/* rgblight_set_layer_state(0, layer_state_cmp(state, _LOWER)); */
|
||||||
rgblight_set_layer_state(1, layer_state_cmp(state, _RAISE));
|
/* rgblight_set_layer_state(1, layer_state_cmp(state, _RAISE)); */
|
||||||
|
|
||||||
return state;
|
/* return state; */
|
||||||
}
|
/* } */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue