File tree Expand file tree Collapse file tree 5 files changed +5
-63
lines changed
Expand file tree Collapse file tree 5 files changed +5
-63
lines changed Original file line number Diff line number Diff line change 22#include <dt-bindings/zmk/input_transform.h>
33#include <dt-bindings/zmk/matrix_transform.h>
44#include <physical_layouts.dtsi>
5- #include <dt-bindings/input/input-event-codes.h>
5+
66
77/ {
88 chosen {
107107 compatible = "zmk,input-listener";
108108 status = "disabled";
109109 device = <&glidepoint_split>;
110- input-processors = <
111- &zip_xy_scaler 1 4 // 2x mult seems too fast, so lowering to 0.25x
112- >;
113-
110+ input-processors = <&zip_xy_scaler 250 100>;
114111 scroller {
115112 layers = <1 2>;
116113 input-processors = <
119116 &zip_scroll_transform INPUT_TRANSFORM_X_INVERT
120117 >;
121118 };
122-
123- base {
124- layers = <0>;
125- input-processors = <
126- &touch_processor
127- >;
128- };
129- };
130-
131- // FIXME turn on smooth scrolling
132- input_processors {
133- touch_processor: touch_processor {
134- compatible = "zmk,input-processor-behaviors";
135- #input-processor-cells = <0>;
136-
137- codes = <INPUT_BTN_TOUCH>; // watch for the 'touch' pseudo button
138- bindings = <&mo 4>; // Activate Layer 4 while held &mo 4
139- };
140119 };
141120};
Original file line number Diff line number Diff line change 22#include <dt-bindings/zmk/keys.h>
33#include <dt-bindings/zmk/bt.h>
44#include <dt-bindings/zmk/outputs.h>
5- #include <dt-bindings/zmk/pointing.h>
65
76#define BASE 0
87#define NAV 1
98#define SYM 2
109#define ADJ 3
11- #define TAP 4
1210
1311/ {
1412 conditional_layers {
2826 &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
2927 &kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
3028 &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
31- &kp LGUI &mo 1 &kp SPACE &kp RET &mo 4 &kp RALT
32- // FIXME change back to mo 2
29+ &kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
3330 >;
3431 };
3532
6259 &kp LGUI &mo NAV &kp SPACE &kp RET &mo 2 &kp RALT
6360 >;
6461 };
65-
66- tap {
67- display-name = "TAP";
68- bindings = <
69- &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
70- &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
71- &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
72- &trans &trans &trans &mkp LCLK &mkp RCLK &mkp MCLK
73- >;
74- };
75- };
76- };
77-
78- #ifdef CONFIG_ZMK_STUDIO
79- / {
80- keymap {
8162 extra_1 {
8263 status = "reserved";
8364 };
9071 status = "reserved";
9172 };
9273 };
93- };
94- #endif
74+ };
Original file line number Diff line number Diff line change @@ -23,14 +23,3 @@ CONFIG_ZMK_IDLE_TIMEOUT=30000
2323# We use this because we need ZMK_PM, PM_DEVICE and ZMK_PM_DEVICE_SUSPEND_RESUME to get proper sleep notifications into the cirque driver
2424# since we need all that might as well also turn on SOFT_OFF (which implies all these things but adds an optional SOFT_OFF feature)
2525CONFIG_ZMK_PM_SOFT_OFF=y
26-
27- # defaults to 512 but we blow out the stack if any input-processor-behaviors is invoked
28- # see https://github.com/zmkfirmware/zmk/issues/3212 for details
29- CONFIG_INPUT_THREAD_STACK_SIZE=2048
30-
31- # enable smooth scrolling
32- CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y
33-
34- # include zmk studio
35- CONFIG_ZMK_STUDIO=y
36-
Original file line number Diff line number Diff line change @@ -29,7 +29,3 @@ CONFIG_ZMK_IDLE_TIMEOUT=30000
2929# We use this because we need ZMK_PM, PM_DEVICE and ZMK_PM_DEVICE_SUSPEND_RESUME to get proper sleep notifications into the cirque driver
3030# since we need all that might as well also turn on SOFT_OFF (which implies all these things but adds an optional SOFT_OFF feature)
3131CONFIG_ZMK_PM_SOFT_OFF=y
32-
33- # defaults to 512 but we blow out the stack if any input-processor-behaviors is invoked
34- # see https://github.com/zmkfirmware/zmk/issues/3212 for details
35- CONFIG_INPUT_THREAD_STACK_SIZE=2048
Original file line number Diff line number Diff line change 6262 spi-max-frequency = <1000000>;
6363 status = "okay";
6464 dr-gpios = <&gpio0 2 (GPIO_ACTIVE_HIGH)>;
65- sensitivity = "3x"; // 2x feels too jumpy IMO
65+ sensitivity = "2x";
6666 x-invert;
67- y-invert; // needed for abs mode? not sure why it wasn't needed in relative
68- abs-rel-divisor = <1>;
6967
7068 // Optional: turning this on enables very aggressive power saving, after 5 seconds with no touches
7169 // the trackpad will go to sleep. It wakes up on touch, but there is a ~300ms delay. Most users will find
You can’t perform that action at this time.
0 commit comments