Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pyinto committed Aug 17, 2024
1 parent 0c552a2 commit 01f2ac0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ enum custom_keycodes {

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {

// layers
case KC_QWERTY:
if (record->event.pressed) {
set_single_persistent_default_layer(_QWERTY);
}
return false;

case KC_LOWER:
if (record->event.pressed) {
layer_on(_LOWER);
Expand All @@ -76,6 +78,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;

case KC_RAISE:
if (record->event.pressed) {
layer_on(_RAISE);
Expand All @@ -85,6 +88,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;

case KC_ADJUST:
if (record->event.pressed) {
layer_on(_ADJUST);
Expand Down

0 comments on commit 01f2ac0

Please sign in to comment.