mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-13 09:48:47 +00:00
- Supports adding and removing layers from custom_config.h - Add "U_" prefix to layer names - Populate keymap from X macro - Rename miryoku_alternatives.h to miryoku_layer_alternatives.h - Rename miryoku_layer.h to miryoku_layer_selection.h - Remove miryoku_layer_names.h - Add miryoku_layer_list.h
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
// Copyright 2022 Manna Harbour
|
|
// https://github.com/manna-harbour/miryoku
|
|
|
|
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/keys.h>
|
|
#include <dt-bindings/zmk/bt.h>
|
|
#include <dt-bindings/zmk/rgb.h>
|
|
#include <dt-bindings/zmk/outputs.h>
|
|
#include <dt-bindings/zmk/ext_power.h>
|
|
|
|
#include "miryoku.h"
|
|
|
|
/ {
|
|
keymap {
|
|
compatible = "zmk,keymap";
|
|
#define MIRYOKU_X(LAYER, STRING) \
|
|
U_##LAYER## { \
|
|
label = STRING; \
|
|
bindings = < U_MACRO_VA_ARGS(MIRYOKU_LAYERMAPPING_##LAYER, MIRYOKU_LAYER_##LAYER) >; \
|
|
};
|
|
MIRYOKU_LAYER_LIST
|
|
#undef MIRYOKU_X
|
|
};
|
|
};
|
|
|
|
/ {
|
|
behaviors {
|
|
hm: homerow_mods {
|
|
compatible = "zmk,behavior-hold-tap";
|
|
label = "HOMEROW_MODS";
|
|
#binding-cells = <2>;
|
|
tapping_term_ms = <U_TAPPING_TERM>;
|
|
flavor = "tap-preferred";
|
|
bindings = <&kp>, <&kp>;
|
|
};
|
|
};
|
|
};
|
|
|
|
#include "miryoku_shift_functions.dtsi"
|
|
|
|
#if defined (MIRYOKU_KLUDGE_MOUSEKEYSPR)
|
|
#include "miryoku_kludge_mousekeyspr.dtsi"
|
|
#else
|
|
#include "miryoku_mousekeys.dtsi"
|
|
#endif
|
|
|
|
#if defined (MIRYOKU_KLUDGE_THUMBCOMBOS)
|
|
#include "miryoku_kludge_thumbcombos.dtsi"
|
|
#endif
|
|
|
|
#if defined (MIRYOKU_KLUDGE_TOPROWCOMBOS)
|
|
#include "miryoku_kludge_toprowcombos.dtsi"
|
|
#endif
|
|
|
|
#if defined (MIRYOKU_KLUDGE_BOTTOMROWCOMBOS)
|
|
#include "miryoku_kludge_bottomrowcombos.dtsi"
|
|
#endif
|