chore: use macro for bluetooth

This commit is contained in:
Bastien Riviere 2024-04-24 17:29:54 +02:00
parent 8c4218c10f
commit 0b4a0e74df
Signed by: babariviere
GPG key ID: 4E5F0839249F162E
2 changed files with 40 additions and 3 deletions

View file

@ -50,6 +50,17 @@
}; };
}; };
macros {
bts: bts {
compatible = "zmk,behavior-macro";
#binding-cells = <1>;
bindings =
<&out OUT_BLE>
, <&macro_param_1to2>
, <&bt BT_SEL MACRO_PLACEHOLDER>;
};
};
combos { combos {
compatible = "zmk,combos"; compatible = "zmk,combos";
combo_clear { combo_clear {
@ -213,7 +224,7 @@
bindings = < bindings = <
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮ //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
//│ │ │ │ │ │ │ │ │ │ │ │ //│ │ │ │ │ │ │ │ │ │ │ │
&none &kp LG(N7) &kp LG(N8) &kp LG(N9) &none BT_PRF(0) BT_PRF(1) BT_PRF(2) BT_PRF(3) BT_PRF(4) &none &kp LG(N7) &kp LG(N8) &kp LG(N9) &none &bts 0 &bts 1 &bts 2 &bts 3 &bts 4
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
//│ │ │ │ │ │ │ │ │ │ │ │ //│ │ │ │ │ │ │ │ │ │ │ │
&none &kp LG(N4) &kp LG(N5) &kp LG(N6) &none &none &kp LG(D) &kp LG(N) &kp LG(P) &none &none &kp LG(N4) &kp LG(N5) &kp LG(N6) &none &none &kp LG(D) &kp LG(N) &kp LG(P) &none

View file

@ -38,7 +38,27 @@ draw_config:
parse_config: parse_config:
preprocess: true preprocess: true
skip_binding_parsing: false skip_binding_parsing: false
raw_binding_map: {} raw_binding_map:
'&bts 0':
tap: $$mdi:bluetooth-connect$$
shifted: '0'
type: text_with_symbol
'&bts 1':
tap: $$mdi:bluetooth-connect$$
shifted: '1'
type: text_with_symbol
'&bts 2':
tap: $$mdi:bluetooth-connect$$
shifted: '2'
type: text_with_symbol
'&bts 3':
tap: $$mdi:bluetooth-connect$$
shifted: '3'
type: text_with_symbol
'&bts 4':
tap: $$mdi:bluetooth-connect$$
shifted: '4'
type: text_with_symblol
sticky_label: $$mdi:circle-small$$ sticky_label: $$mdi:circle-small$$
toggle_label: $$mdi:toggle-switch$$ toggle_label: $$mdi:toggle-switch$$
tap_toggle_label: tap-toggle tap_toggle_label: tap-toggle
@ -272,4 +292,10 @@ parse_config:
NON_US_HASH: '#' NON_US_HASH: '#'
NUHS: '#' NUHS: '#'
TILDE2: '~' TILDE2: '~'
zmk_combos: {} zmk_combos:
combo_l_alt:
align: top
offset: 1.2
combo_r_alt:
align: top
offset: 1.2