From c0bd767d13b80da3bb538a345707627f64105da0 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 18 Nov 2025 22:11:23 +0200 Subject: [PATCH] feat(lily58): mouse layer --- config/lily58.conf | 4 ++++ config/lily58.keymap | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/config/lily58.conf b/config/lily58.conf index a409717..e80be55 100644 --- a/config/lily58.conf +++ b/config/lily58.conf @@ -1,3 +1,7 @@ +# Mouse emulation +CONFIG_ZMK_POINTING=y + +# Display and widgets CONFIG_ZMK_DISPLAY=y CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y CONFIG_ZMK_WIDGET_WPM_STATUS=y diff --git a/config/lily58.keymap b/config/lily58.keymap index 774d294..b33e9f5 100644 --- a/config/lily58.keymap +++ b/config/lily58.keymap @@ -2,6 +2,7 @@ #include #include #include +#include / { behaviors { @@ -34,6 +35,15 @@ }; }; + combos { + compatible = "zmk,combos"; + + toggle_mouse { + bindings = <&tog 3>; + key-positions = <42 43>; + }; + }; + keymap { compatible = "zmk,keymap"; @@ -66,5 +76,15 @@ &none &none &none &none &none &none &none &none >; }; + + mouse_layer { + bindings = < +&none &none &none &none &none &none &none &none &none &none &none &none +&none &none &none &none &none &none &none &none &none &none &none &none +&none &none &none &none &none &none &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_RIGHT &none &none +&none &none &none &none &none &none &none &mkp MB3 &none &none &none &none &none &none + &none &none &none &none &mkp MB1 &mkp MB2 &msc SCRL_DOWN &msc SCRL_UP + >; + }; }; }; -- 2.44.1