Skip to content

Commit 690c3db

Browse files
committed
feat(silakka54): add hold-tap BT select/disconnect behavior
1 parent b7e87cb commit 690c3db

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

config/silakka54.keymap

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
tapping-term-ms = <200>;
4343
bindings = <&mo>, <&tog>;
4444
};
45+
bt_tog: behavior_bluetooth_tog {
46+
compatible = "zmk,behavior-hold-tap";
47+
#binding-cells = <2>;
48+
flavor = "balanced";
49+
tapping-term-ms = <200>;
50+
bindings = <&bt BT_DISC>, <&bt BT_SEL>;
51+
};
4552
};
4653
keymap {
4754
compatible = "zmk,keymap";
@@ -66,11 +73,11 @@
6673
function_layer {
6774
display-name = "Function";
6875
bindings = <
69-
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp C_BRI_AUTO &kp C_BRI_DN &kp C_BRI_UP &kp C_VOL_DN &kp C_VOL_UP &kp C_MUTE
70-
&ext_power EP_ON &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp C_PREV
71-
&ext_power EP_OFF &kp F11 &kp F12 &kp F13 &kp F14 &kp F15 &kp F16 &kp F17 &kp F18 &kp F19 &kp F20 &kp C_NEXT
72-
&ext_power EP_TOG &kp F21 &kp F22 &kp F23 &kp F24 &trans &trans &trans &trans &trans &trans &kp C_PP
73-
&trans &trans &trans &trans &trans &trans
76+
&bt BT_CLR &bt_tog 0 &bt_tog 1 &bt_tog 2 &bt_tog 3 &bt_tog 4 &kp C_BRI_AUTO &kp C_BRI_DN &kp C_BRI_UP &kp C_VOL_DN &kp C_VOL_UP &kp C_MUTE
77+
&ext_power EP_ON &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp C_PREV
78+
&ext_power EP_OFF &kp F11 &kp F12 &kp F13 &kp F14 &kp F15 &kp F16 &kp F17 &kp F18 &kp F19 &kp F20 &kp C_NEXT
79+
&ext_power EP_TOG &kp F21 &kp F22 &kp F23 &kp F24 &trans &trans &trans &trans &trans &trans &kp C_PP
80+
&trans &trans &trans &trans &trans &trans
7481
>;
7582
};
7683

0 commit comments

Comments
 (0)