Skip to content

Commit

Permalink
add auto mouse layer
Browse files Browse the repository at this point in the history
  • Loading branch information
RealET committed Jan 11, 2025
1 parent 46ca2c6 commit 2ec032c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion boards/shields/imprint/imprint.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ RC(2,6) RC(2,5) RC(2,4) RC(2,3) RC(2,2) RC(2,1) RC(9,1) RC(9,2)
compatible = "zmk,input-listener";
status = "disabled";
device = <&trackball_peripheral_split>;
input-processors = <&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>;
input-processors = <&zip_xy_transform INPUT_TRANSFORM_XY_SWAP>, <&zip_temp_layer 3 2000>;
};
//left hand trackball
trackball_central_listener: trackball_central_listener {
Expand Down
14 changes: 14 additions & 0 deletions boards/shields/imprint/imprint.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <dt-bindings/zmk/rgb.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/pointing.h>

/ {
keymap {
Expand Down Expand Up @@ -40,6 +41,19 @@
&trans &trans &trans &trans &trans &trans &trans &rgb_ug RGB_TOG &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &rgb_ug RGB_HUI &rgb_ug RGB_SAI &rgb_ug RGB_BRI &trans &trans
&trans &trans &trans &trans &trans &trans &trans &rgb_ug RGB_HUD &rgb_ug RGB_SAD &rgb_ug RGB_BRD &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};

Layer__3 {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &to 0 &mkp RCLK &mkp MCLK &mkp LCLK &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
Expand Down

0 comments on commit 2ec032c

Please sign in to comment.