Update kemonine tidbit keymap to tweak numlock status to fix bug

This commit is contained in:
kemonine 2020-11-25 17:46:41 -05:00
parent b945108001
commit a7b69154c6
5 changed files with 514 additions and 514 deletions

View file

@ -158,10 +158,10 @@ layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_set_layer_state(0, layer_state_cmp(state, 0)); rgblight_set_layer_state(0, layer_state_cmp(state, 0));
switch (get_highest_layer(state)) { switch (get_highest_layer(state)) {
case 1: case 1:
register_code(KC_NLCK); tap_code(KC_NLCK);
break; break;
case 0: case 0:
unregister_code(KC_NLCK); tap_code(KC_NLCK);
break; break;
} }
return state; return state;

File diff suppressed because it is too large Load diff

View file

@ -1 +1 @@
MOUSEKEY_ENABLE = yes MOUSEKEY_ENABLE = yes

View file

@ -158,10 +158,10 @@ layer_state_t layer_state_set_user(layer_state_t state) {
rgblight_set_layer_state(0, layer_state_cmp(state, 0)); rgblight_set_layer_state(0, layer_state_cmp(state, 0));
switch (get_highest_layer(state)) { switch (get_highest_layer(state)) {
case 1: case 1:
register_code(KC_NLCK); tap_code(KC_NLCK);
break; break;
case 0: case 0:
unregister_code(KC_NLCK); tap_code(KC_NLCK);
break; break;
} }
return state; return state;

View file

@ -27,6 +27,8 @@
&none &kp KP_NUMBER_0 &kp KP_DOT &kp KP_ENTER &none &kp KP_NUMBER_0 &kp KP_DOT &kp KP_ENTER
>; >;
layer-bindings = <&layer_rgb RGB_BLUE &layer_lock NUMLOCK>;
sensor-bindings = <&inc_dec_kp K_VOLUME_UP K_VOLUME_DOWN>; sensor-bindings = <&inc_dec_kp K_VOLUME_UP K_VOLUME_DOWN>;
}; };