Skip to content

Commit

Permalink
Hmm, disconnecting got in the way?
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewtodd committed Dec 30, 2024
1 parent 2e8653d commit 1c85ee4
Showing 1 changed file with 38 additions and 8 deletions.
46 changes: 38 additions & 8 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,47 @@
};

macros {
bt_sel: bluetooth_select_only {
compatible = "zmk,behavior-macro-one-param";
#binding-cells = <1>;
bt0: bluetooth_select_only {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_param_1to1>
, <&macro_tap &bt BT_SEL MACRO_PLACEHOLDER>
, <&macro_tap &bt BT_DISC 0>
= <&macro_tap &bt BT_SEL 0>
, <&macro_tap &bt BT_DISC 1>
, <&macro_tap &bt BT_DISC 2>
, <&macro_tap &bt BT_DISC 3>
, <&macro_tap &bt BT_DISC 4>
;
};

bt1: bluetooth_select_only {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_tap &bt BT_SEL 1>
, <&macro_tap &bt BT_DISC 0>
, <&macro_tap &bt BT_DISC 2>
, <&macro_tap &bt BT_DISC 3>
;
};

bt2: bluetooth_select_only {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_tap &bt BT_SEL 2>
, <&macro_tap &bt BT_DISC 0>
, <&macro_tap &bt BT_DISC 1>
, <&macro_tap &bt BT_DISC 3>
;
};

bt3: bluetooth_select_only {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_tap &bt BT_SEL 3>
, <&macro_tap &bt BT_DISC 0>
, <&macro_tap &bt BT_DISC 1>
, <&macro_tap &bt BT_DISC 2>
;
};
};
Expand Down Expand Up @@ -163,7 +193,7 @@
&kp LCTRL &kp LALT &kp LGUI &kp LSHFT &none &none &kp C_PREV &kp C_VOL_DN &kp C_VOL_UP &kp C_NEXT
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
//│ │ │ │ │ │ │ │ │ │ │ │
&none &none &none &none &none &none &bt_sel 0 &bt_sel 1 &bt_sel 2 &bt_sel 3
&none &none &none &none &none &none &bt0 &bt1 &bt2 &bt3
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
// | | | | | |
&none &none &kp C_MUTE &kp C_PP
Expand Down

0 comments on commit 1c85ee4

Please sign in to comment.