| .github/workflows | ||
| config | ||
| miryoku | ||
| readme.org | ||
| welcome.org | ||
Miryoku ZMK

Miryoku is an ergonomic, minimal, orthogonal, and universal keyboard layout. Miryoku ZMK is the Miryoku implementation for ZMK.
Building
Local Builds
First set up the ZMK build environment and build and flash the default keymap for your keyboard.
Clone this repository and set ZMK_CONFIG to the absolute path of the /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/config subdirectory. Use the config file to select alternative layout and mapping options.
Workflow Builds
Firmware can be built via GitHub Actions workflows without use of a local build environment.
First log in to GitHub, fork the Miryoku ZMK repository, and enable workflows.
To access a workflow, visit the Actions tab and select the workflow. To download the firmware from a workflow run, select the workflow, select the workflow run, select the desired Artifacts, and unzip the downloaded zip file.
Workflow files are in /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/.github/workflows.
Build Examples
Copy one of the included Build Example workflow files, edit the name value, and edit and add options and values as desired. Select Run workflow, select the Branch if desired, and activate Run workflow.
Options are specified in the with section and are of the following form.
option: '["value"]'
For multiple values per option use the following form, and a matrix build will be performed for each combination of values across all options.
option: '["value1","value2"]'
The board option specifies the ZMK board and is required. All other options are optional.
The shield option specifies the ZMK shield.
The alphas, nav, clipboard, and layers options correspond to the alternative layout options. The mapping option corresponds to the alternative mapping options. Alternative layout and mapping options are given in the documentation in the form MIRYOKU_OPTION=VALUE. To use here, convert to the form specified above. Use default to represent the default value. Values for these five options are case-insensitive.
The kconfig option can be used to generate a keyboard.conf. Join multiple lines with \n.
See the Test All workflow files for all supported values for each option.
Build Inputs
The Build Inputs workflow can be used without editing workflow files. Select Run workflow, select the Branch and fill out the form as desired, and activate Run workflow.
Options are specified by entering values directly in the corresponding field. Multiple comma separated values can be entered per option and a matrix build will be performed for each combination of values across all options.
The Board option specifies the ZMK board and is required. All other options are optional.
The Shield option specifies the ZMK shield.
The Miryoku Alphas, Miryoku Nav, Miryoku Clipboard, and Miryoku Layers options correspond to the alternative layout options. The Miryoku Mapping option corresponds to the alternative mapping options. Alternative layout and mapping options are given in the documentation in the form MIRYOKU_OPTION=VALUE. To use here, enter the value in the corresponding Miryoku Option field. Use default to represent the default value. Values for these five options are case-insensitive.
The Kconfig option can be used to generate a keyboard.conf. Join multiple lines with \n.
Supported Keyboards
See the Test All workflow files for lists of supported keyboards.
Board Only
Any board supported by ZMK with a keymap in Miryoku ZMK.
Board / Shield Combination
Any compatible combination of board supported by ZMK and shield supported by ZMK with a keymap in Miryoku ZMK.
Out of Tree Boards and Shields
Additionally, some out of tree boards and shields are automatically supported by the included workflows. See /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/.github/workflows/outboards.
Config File
The config file specifies alternative layout and mapping options for all local builds. The config file is not used in workflow builds.
Options are given in the documentation in the form MIRYOKU_OPTION=VALUE. Convert to the form #define MIRYOKU_OPTION_VALUE and add to the config file. The file is /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/miryoku/config.h. See the example config file. The config file is included into the keyboard's keymap file before the mapping with:
#include "../miryoku/config.h"
Example Config File
Below is an example config file with the following configuration options:
MIRYOKU_ALPHAS=QWERTYMIRYOKU_NAV=INVERTEDTMIRYOKU_CLIPBOARD=WINMIRYOKU_LAYERS=FLIPMIRYOKU_MAPPING=EXTENDED_THUMBS
// Copyright 2021 Manna Harbour
// https://github.com/manna-harbour/miryoku
#define MIRYOKU_ALPHAS_QWERTY
#define MIRYOKU_NAV_INVERTEDT
#define MIRYOKU_CLIPBOARD_WIN
#define MIRYOKU_LAYERS_FLIP
#define MIRYOKU_MAPPING_EXTENDED_THUMBS
Miryoku Keymap
The Miryoku keymap is a ZMK DT keymap file using C preprocessor macros for configuration options and to abstract the physical layout. The Miryoku keymap file is /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/miryoku/miryoku.dtsi. The file is included into the keyboard's keymap after the config file and mapping with:
#include "../miryoku/miryoku.dtsi"
Macros are included from /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/miryoku/miryoku.h. Layer data is generated by Miryoku Babel and is included from files in the /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/miryoku/miryoku_babel directory.
Mapping
The keymap is mapped onto keyboards with different physical layouts. The keymap is specified in terms of the MIRYOKU_MAPPING macro. The macro is defined in a C header file for each physical layout. Unused keys are mapped to &none. The files are in /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/miryoku/mapping. The mapping file is included into the keyboard's keymap file before the Miryoku keymap with e.g.
#include "../miryoku/mapping/36-minidox.h"
On each hand, only the main alpha block of 3 rows by 5 columns and the 3 most appropriate thumb keys are used.
Notes
Notes or diagrams are provided below where the selection of keys is not obvious or where alternatives are provided via mapping configuration options.
34-ferris
MIRYOKU_COMBO_TPS=ENABLE
Combos of primary and secondary thumb keys emulate the missing tertiary thumb key. This configuration option is enabled automatically for this mapping and can be enabled on other mappings for compatibility.
48-planck
Default

Extended Thumbs
MIRYOKU_MAPPING=EXTENDED_THUMBS
![]()
48-lets_split
Default
![]()
Pinkie Stagger
MIRYOKU_MAPPING=PINKIE_STAGGER

50-kyria
Default

Extend Thumbs
MIRYOKU_MAPPING=EXTENDED_THUMBS
![]()
Keyboard Keymaps
Keymap files for many keyboards included in ZMK are provided in /ClaytonWWilson/miryoku_zmk/src/commit/add19808e0f9a7266547a8793ba131268b93449b/config.
