From 4ad253df6a3e6745591fb287a5fa4942f90a16ff 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:24:40 +0000 Subject: [PATCH] Try some macros to control other bluetooth devices --- config/helix.keymap | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/config/helix.keymap b/config/helix.keymap index 4942625..d16df68 100644 --- a/config/helix.keymap +++ b/config/helix.keymap @@ -3,6 +3,29 @@ #include / { + 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"; + }; + + NBT_FWD: NBT_FWD { + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings = <&bt BT_NXT &kp K_FORWARD &bt BT_PRV>; + label = "NBT_FWD"; + }; + }; + keymap { compatible = "zmk,keymap"; @@ -24,7 +47,17 @@ &trans &trans &trans &bt BT_PRV &trans &bt BT_NXT &trans &trans &trans &trans &trans &trans &caps_word &trans &kp C_BRIGHTNESS_INC &kp C_PREVIOUS &kp C_PLAY_PAUSE &kp C_NEXT &kp LEFT_ARROW &kp DOWN &kp UP_ARROW &kp RIGHT &trans &trans &trans &trans &kp C_BRIGHTNESS_DEC &kp C_VOLUME_DOWN &kp K_MUTE &kp C_VOLUME_UP &kp LG(LC(LA(LS(F6)))) &trans &trans &trans &trans &trans &trans &trans -&trans &trans &kp LC(LG(SPACE)) &trans &trans &trans &trans &kp LC(LA(LG(C))) &trans &trans &trans &trans &trans &kp LA(LC(LG(SPACE))) +&trans &trans &kp LC(LG(SPACE)) &trans &trans &trans &mo 2 &kp LC(LA(LG(C))) &trans &trans &trans &trans &trans &kp LA(LC(LG(SPACE))) + >; + }; + + 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 >; }; };