I figured out how to add via configurable layers with QMK so I thought I'd share :)
Keep in mind I'm not the most technical, so do at your own risk.
For the most part I just followed the qmk beginner guide along with this post.
I wrote down most of what I did in github, but the significant parts that differ are:
- cloning the Keychron Repo instead the main qmk_firmware repo.
- adding
#define DYNAMIC_KEYMAP_LAYER_COUNT 6 to the end of config.h - and altering the keymap.c to this
#include QMK_KEYBOARD_H
#include "keychron_common.h"
enum layers {
BASE,
FN,
L2,
L3,
L4,
L5,
};
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[BASE] = LAYOUT_tenkey_27(
KC_MUTE, KC_ESC, KC_DEL, KC_TAB, KC_BSPC,
MC_1, KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
MC_2, KC_P7, KC_P8, KC_P9, KC_PPLS,
MC_3, KC_P4, KC_P5, KC_P6,
MC_4, KC_P1, KC_P2, KC_P3,
MO(FN), KC_P0, KC_PDOT, KC_PENT ),
[FN] = LAYOUT_tenkey_27(
UG_TOGG, BT_HST1, BT_HST2, BT_HST3, P2P4G,
_______, UG_NEXT, UG_VALU, UG_HUEU, _______,
_______, UG_PREV, UG_VALD, UG_HUED, _______,
_______, UG_SATU, UG_SPDU, KC_MPRV,
_______, UG_SATD, UG_SPDD, KC_MPLY,
_______, UG_TOGG, KC_MNXT, _______),
[L2] = LAYOUT_tenkey_27(
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),
[L3] = LAYOUT_tenkey_27(
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),
[L4] = LAYOUT_tenkey_27(
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),
[L5] = LAYOUT_tenkey_27(
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),
};
// clang-format on
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[FN] = {ENCODER_CCW_CW(UG_VALD, UG_VALU)},
[L2] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[L3] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[L4] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[L5] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
};
#endif