36 lines
823 B
Plaintext
36 lines
823 B
Plaintext
#include <dt-bindings/zmk/keys.h>
|
|
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/kscan_mock.h>
|
|
|
|
/ {
|
|
behaviors {
|
|
ht_bal: behavior_hold_tap_balanced {
|
|
compatible = "zmk,behavior-hold-tap";
|
|
#binding-cells = <2>;
|
|
flavor = "balanced";
|
|
tapping-term-ms = <100>;
|
|
quick-tap-ms = <200>;
|
|
bindings = <&kp>, <&sk>;
|
|
hold-while-undecided;
|
|
hold-while-undecided-linger;
|
|
};
|
|
};
|
|
|
|
keymap {
|
|
compatible = "zmk,keymap";
|
|
|
|
default_layer {
|
|
bindings = <
|
|
&ht_bal LEFT_SHIFT LEFT_SHIFT &ht_bal LEFT_SHIFT LEFT_CONTROL
|
|
&kp D &kp RIGHT_CONTROL>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&kscan {
|
|
events = <
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
ZMK_MOCK_RELEASE(0,0,10)
|
|
>;
|
|
};
|