From c95ca26cb78c1b321a101dfdfc117264ac439ce3 Mon Sep 17 00:00:00 2001 From: "keymap-editor[bot]" <91849743+keymap-editor[bot]@users.noreply.github.com> Date: Wed, 6 Mar 2024 17:39:22 +0000 Subject: [PATCH] Use a parametrized macro --- config/helix.keymap | 36 +++++++++++++----------------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/config/helix.keymap b/config/helix.keymap index d16df68..145f09e 100644 --- a/config/helix.keymap +++ b/config/helix.keymap @@ -4,25 +4,15 @@ / { macros { - NBT_PP: NBT_PP { - compatible = "zmk,behavior-macro"; - #binding-cells = <0>; - bindings = <&bt BT_NXT &kp C_PLAY_PAUSE &bt BT_PRV>; - label = "NBT_PP"; - }; - - NBT_PRV: NBT_PRV { - compatible = "zmk,behavior-macro"; - #binding-cells = <0>; - bindings = <&bt BT_NXT &kp K_FORWARD &bt BT_PRV>; - label = "NBT_PRV"; - }; + MO_NBT_KP: MO_NBT_KP { + compatible = "zmk,behavior-macro-one-param"; + #binding-cells = <1>; + bindings = + <&bt BT_NXT>, + <¯o_wait_time 30>, + <¯o_param_1to1 &kp MACRO_PLACEHOLDER &bt BT_PRV>; - NBT_FWD: NBT_FWD { - compatible = "zmk,behavior-macro"; - #binding-cells = <0>; - bindings = <&bt BT_NXT &kp K_FORWARD &bt BT_PRV>; - label = "NBT_FWD"; + label = "MO_NBT_KP"; }; }; @@ -53,11 +43,11 @@ layer_2 { bindings = < -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans -&trans &trans &trans &NBT_PP &NBT_PP &NBT_FWD &trans &trans &trans &trans &trans &trans -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans -&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans +&trans &trans &trans &MO_NBT_KP K_PREVIOUS &MO_NBT_KP C_PLAY_PAUSE &MO_NBT_KP K_FORWARD &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans >; }; };