|
|
@ -126,14 +126,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
case QWERTY:
|
|
|
|
case QWERTY:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
set_single_persistent_default_layer(_QWERTY);
|
|
|
|
set_single_persistent_default_layer(_QWERTY);
|
|
|
|
breathing_self_disable();
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
|
|
|
|
breathing_self_disable();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case DATA:
|
|
|
|
case DATA:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
set_single_persistent_default_layer(_DATA);
|
|
|
|
set_single_persistent_default_layer(_DATA);
|
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
breathing_enable();
|
|
|
|
breathing_enable();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -144,7 +146,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
layer_on(_LOWER);
|
|
|
|
layer_on(_LOWER);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
breathing_enable();
|
|
|
|
breathing_enable();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -153,7 +155,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
layer_off(_LOWER);
|
|
|
|
layer_off(_LOWER);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
breathing_self_disable();
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
|
|
|
|
breathing_self_disable();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -164,7 +168,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
layer_on(_RAISE);
|
|
|
|
layer_on(_RAISE);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
breathing_enable();
|
|
|
|
breathing_enable();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -173,7 +177,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
layer_off(_RAISE);
|
|
|
|
layer_off(_RAISE);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
uint8_t default_layer = biton32(default_layer_state);
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
if (default_layer == _QWERTY) {
|
|
|
|
breathing_self_disable();
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
|
|
|
|
breathing_self_disable();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -182,7 +188,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
case BACKLIT:
|
|
|
|
case BACKLIT:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
if (record->event.pressed) {
|
|
|
|
register_code(KC_RSFT);
|
|
|
|
register_code(KC_RSFT);
|
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
|
#ifdef BACKLIGHT_BREATHING
|
|
|
|
backlight_step();
|
|
|
|
backlight_step();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|