This is a template repository which allows for an external set of QMK keymaps to be defined and compiled. This is useful for users who want to maintain their own keymaps without having to fork the main QMK repository.
qmk setup procedure if you haven't already done so -- see QMK Docs for details.qmk new-keymap
keyboards directory, in the same location that would normally be used in the main QMK repository. For example, if you wanted to add a keymap for the Planck, it will be created in keyboards/planck/keymaps/<your keymap name>qmk new-keymap -kb <your_keyboard> -km <your_keymap>layouts/<layout name>/<your keymap name>/keymap.* is also supported if you prefer the layout systemqmk userspace-add -kb <your_keyboard> -km <your_keymap>
qmk.json fileqmk userspace-remove -kb <your_keyboard> -km <your_keymap> will delete itqmk userspace-listqmk setup procedure if you haven't already done so -- see QMK Docs for details.cd into this repository's clone directoryqmk config user.overlay_dir="$(realpath .)" -- you MUST be located in the cloned userspace location for this to work correctly
cded into your userspace repository, but the above makes your userspace available regardless of your shell location.qmk compile -kb your_keyboard -km your_keymap or make your_keyboard:your_keymapAlternatively, if you configured your build targets above, you can use qmk userspace-compile to build all of your userspace targets at once.
If you wish to point GitHub actions to a different repository, a different branch, or even a different keymap name, you can modify .github/workflows/build_binaries.yml to suit your needs.
To override the build job, you can change the following parameters to use a different QMK repository or branch:
with:
qmk_repo: qmk/qmk_firmware
qmk_ref: master
If you wish to manually manage qmk_firmware using git within the userspace repository, you can add qmk_firmware as a submodule in the userspace directory instead. GitHub Actions will automatically use the submodule at the pinned revision if it exists, otherwise it will use the default latest revision of qmk_firmware from the main repository.
This can also be used to control which fork is used, though only upstream qmk_firmware will have support for external userspace until other manufacturers update their forks.
git submodule add https://github.com/qmk/qmk_firmware.gitgit submodule update --init --recursive