zmk_mf68/app/tests/tap-dance/behavior_keymap.dtsi

71 lines
1.8 KiB
Text
Raw Normal View History

#include <dt-bindings/zmk/keys.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/kscan_mock.h>
/ {
behaviors {
ht: hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "HOLD_TAP";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick_tap_ms = <0>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
tdm: tap_dance_mixed {
compatible = "zmk,behavior-tap-dance";
label = "TAP_DANCE_MOD";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&ht LSHIFT A>, <&ht LALT B>, <&ht LGUI C>;
};
tdb: tap_dance_basic {
compatible = "zmk,behavior-tap-dance";
label = "TAP_DANCE_BASIC";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&kp N1>, <&kp N2>, <&kp N3>;
};
td2: tap_dance_basic_2 {
compatible = "zmk,behavior-tap-dance";
label = "TAP_DANCE_BASIC_2";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&kp A>, <&kp B>, <&kp C>;
};
tds: tap_dance_single {
compatible = "zmk,behavior-tap-dance";
label = "TAP_DANCE_SINGlE";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&kp S>;
};
};
combos {
compatible = "zmk,combos";
td_combo {
bindings = <&tdb>;
key-positions = <0 1>;
timeout-ms = <50>;
};
};
keymap {
compatible = "zmk,keymap";
label = "Default keymap";
default_layer {
bindings = <
&tdm &tds
&tdb &td2>;
};
};
};