Skip to content

Commit

Permalink
qmk: add next window macro to adjust layer
Browse files Browse the repository at this point in the history
  • Loading branch information
pjvds committed Oct 9, 2024
1 parent bd2f5ea commit ac63dca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qmk/crkdb/born2code/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ enum custom_keycodes {
TO_LOWER ,
TO_RAISE ,
TO_ADJUST,
NEXT_WINDOW,
};

enum layer_number {
Expand Down Expand Up @@ -125,7 +126,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[L_ADJUST] = LAYOUT_split_3x6_3(
//,-----------------------------------------------------. ,-----------------------------------------------------.
KC_SLEP,TO(L_BASE),TO(L_BYPASS), TO(L_GAME), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_INS, XXXXXXX, XXXXXXX, XXXXXXX,
NEXT_WINDOW,TO(L_BASE),TO(L_BYPASS), TO(L_GAME), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_INS, XXXXXXX, XXXXXXX, XXXXXXX,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, XXXXXXX, XXXXXXX, XXXXXXX, CLEAR, XXXXXXX, KC_CAPS, XXXXXXX, XXXXXXX,
//|--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------|
Expand Down Expand Up @@ -249,6 +250,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
clear_keyboard();
}

break;
case NEXT_WINDOW:
if(record->event.pressed) {
SEND_STRING(SS_LCMD("~"));
}
break;
}
return true;
Expand Down

0 comments on commit ac63dca

Please sign in to comment.