From 2ec032c08143cf1e0392c5ee51795ad696938740 Mon Sep 17 00:00:00 2001 From: realet Date: Sat, 11 Jan 2025 07:40:06 -0500 Subject: [PATCH] add auto mouse layer --- boards/shields/imprint/imprint.dtsi | 2 +- boards/shields/imprint/imprint.keymap | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/boards/shields/imprint/imprint.dtsi b/boards/shields/imprint/imprint.dtsi index 4c84f5d..e81b3df 100644 --- a/boards/shields/imprint/imprint.dtsi +++ b/boards/shields/imprint/imprint.dtsi @@ -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 { diff --git a/boards/shields/imprint/imprint.keymap b/boards/shields/imprint/imprint.keymap index 1d8c969..ad39f58 100644 --- a/boards/shields/imprint/imprint.keymap +++ b/boards/shields/imprint/imprint.keymap @@ -3,6 +3,7 @@ #include #include #include +#include / { keymap { @@ -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