|
| 1 | +#include <input/processors.dtsi> |
| 2 | +#include <behaviors.dtsi> |
| 3 | +#include <dt-bindings/zmk/bt.h> |
| 4 | +#include <dt-bindings/zmk/pointing.h> |
| 5 | +#include <dt-bindings/zmk/input_transform.h> |
| 6 | + |
| 7 | +&trackball_listener { |
| 8 | + scroller { |
| 9 | + layers = <2>; |
| 10 | + input-processors = <&zip_xy_transform INPUT_TRANSFORM_Y_INVERT>, |
| 11 | + <&zip_xy_scaler 1 2>, |
| 12 | + <&zip_xy_to_scroll_mapper>; |
| 13 | + }; |
| 14 | +}; |
| 15 | + |
| 16 | +/ { |
| 17 | + combos { |
| 18 | + compatible = "zmk,combos"; |
| 19 | + |
| 20 | + bootloader { |
| 21 | + timeout-ms = <50>; |
| 22 | + key-positions = <0 3>; |
| 23 | + bindings = <&bootloader>; |
| 24 | + }; |
| 25 | + studio_unlock { |
| 26 | + timeout-ms = <50>; |
| 27 | + key-positions = <1 2>; |
| 28 | + bindings = <&studio_unlock>; |
| 29 | + }; |
| 30 | + }; |
| 31 | + |
| 32 | + behaviors { |
| 33 | + mlt: mlt { |
| 34 | + compatible = "zmk,behavior-hold-tap"; |
| 35 | + display-name = "Layer-Mouse tap"; |
| 36 | + bindings = <&mo>, <&mkp>; |
| 37 | + |
| 38 | + #binding-cells = <2>; |
| 39 | + tapping-term-ms = <200>; |
| 40 | + flavor = "hold-preferred"; |
| 41 | + }; |
| 42 | + mlte: mlte { |
| 43 | + compatible = "zmk,behavior-hold-tap"; |
| 44 | + display-name = "Layer-Mouse tap (eager)"; |
| 45 | + bindings = <&mo>, <&mkp>; |
| 46 | + |
| 47 | + #binding-cells = <2>; |
| 48 | + tapping-term-ms = <500>; |
| 49 | + flavor = "tap-preferred"; |
| 50 | + hold-while-undecided; |
| 51 | + }; |
| 52 | + }; |
| 53 | + |
| 54 | + keymap { |
| 55 | + compatible = "zmk,keymap"; |
| 56 | + |
| 57 | + base_layer { |
| 58 | + bindings = < |
| 59 | +&mlt 1 MB4 &mkp MB5 &mkp LCLK &mkp RCLK |
| 60 | +&mlte 2 LCLK &mlte 2 MCLK |
| 61 | + >; |
| 62 | + }; |
| 63 | + |
| 64 | + bluetooth_layer { |
| 65 | + bindings = < |
| 66 | +&trans &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 |
| 67 | +&bt BT_SEL 0 &bt BT_CLR |
| 68 | + >; |
| 69 | + }; |
| 70 | + |
| 71 | + scroll_layer { |
| 72 | + bindings = < |
| 73 | +&trans &trans &trans &trans |
| 74 | +&trans &trans |
| 75 | + >; |
| 76 | + }; |
| 77 | + }; |
| 78 | +}; |
0 commit comments