Combined function and config

- removed config layer
- was able to spread everything out to the function layer
- cleaned up combo and oled code because of this
This commit is contained in:
Victor 2024-08-21 21:00:14 -05:00
parent fee58201e5
commit 5fc856d0ea
Failed to generate hash of commit
11 changed files with 19 additions and 50 deletions

View file

@ -4,7 +4,6 @@ uint16_t get_combo_term(uint16_t index, combo_t *combo) {
// or with combo index, i.e. its name from enum.
switch (index) {
case LYR_FUNCTION:
case LYR_CONFIG:
return COMBO_TERM + 100;
default:
@ -14,7 +13,6 @@ uint16_t get_combo_term(uint16_t index, combo_t *combo) {
bool get_combo_must_hold(uint16_t index, combo_t *combo) {
switch (index) {
case LYR_CONFIG:
case LYR_FUNCTION:
return true;
@ -37,7 +35,6 @@ bool combo_should_trigger (uint16_t combo_index, combo_t *combo, uint16_t keycod
}
case LYR_FUNCTION:
case LYR_CONFIG:
if ( get_highest_layer(layer_state | default_layer_state) > FIRST_DEFAULT_LAYER ) {
return false;
}