// Copyright 2021 Manna Harbour // https://github.com/manna-harbour/miryoku #include #include #include #include #include #if defined (MIRYOKU_KLUDGE_MOUSEKEYSPR) #include #endif #include "miryoku.h" / { keymap { compatible = "zmk,keymap"; BASE_layer { label = "Base"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_BASE) >; }; BUTTON_layer { label = "Button"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_BUTTON) >; }; NAV_layer { label = "Nav"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_NAV) >; }; MOUSE_layer { label = "Mouse"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_MOUSE) >; }; MEDIA_layer { label = "Media"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_MEDIA) >; }; NUM_layer { label = "Num"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_NUM) >; }; SYM_layer { label = "Sym"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_SYM) >; }; FUN_layer { label = "Fun"; bindings = < U_MACRO_VA_ARGS(MIRYOKU_MAPPING, MIRYOKU_LAYER_FUN) >; }; }; }; / { behaviors { hm: homerow_mods { compatible = "zmk,behavior-hold-tap"; label = "HOMEROW_MODS"; #binding-cells = <2>; tapping_term_ms = ; flavor = "tap-preferred"; bindings = <&kp>, <&kp>; }; }; }; #if defined (MIRYOKU_KLUDGE_MOUSEKEYSPR) &mmv { acceleration-exponent = ; time-to-max-speed-ms = ; delay-ms = ; }; /* &mwh { acceleration-exponent = ; time-to-max-speed-ms = ; delay-ms = ; }; */ #endif #if defined (MIRYOKU_COMBO_TPS_ENABLE) && defined (MIRYOKU_COMBO_TPSL) && defined (MIRYOKU_COMBO_TPSR) / { combos { compatible = "zmk,combos"; combo_tpsl_BASE { timeout-ms = <200>; key-positions = ; bindings = << MEDIA ESC>; layers = ; }; combo_tpsr_BASE { timeout-ms = <200>; key-positions = ; bindings = << FUN DEL>; layers = ; }; combo_tpsr_BUTTON { timeout-ms = <200>; key-positions = ; bindings = ; layers =