aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/tests/hold-tap/hold-preferred/behavior_keymap.dtsi
blob: e61431952307c28852f722bffa1df469005c2fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <dt-bindings/zmk/keys.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/kscan_mock.h>



/ {
	behaviors {
		ht_hold: behavior_hold_hold_tap {
			compatible = "zmk,behavior-hold-tap";
			label = "hold_hold_tap";
			#binding-cells = <2>;
			flavor = "hold-preferred";
			tapping_term_ms = <300>;
			bindings = <&kp>, <&kp>;
		};
	};

	keymap {
		compatible = "zmk,keymap";
		label ="Default keymap";

		default_layer {
			bindings = <
				&ht_hold LEFT_SHIFT F &ht_hold LEFT_CONTROL J
				&kp D &kp RIGHT_CONTROL>;
		};
	};
};