Skip to content

Commit

Permalink
Fixed MOU layer number
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Jan 15, 2025
1 parent bb1401e commit 5a8bf62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
7 changes: 3 additions & 4 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define AOE 5 // AOE 2 layers with easier access for default shortcuts on main layer
#define AGS 6
#define ABS 7
#define MOU 9
#define MOU 8

#define HYPER LG(LS(LC(LALT))) // HYPER key for another shortcut layer

Expand Down Expand Up @@ -79,9 +79,8 @@
};

toggle_mouse_emulation_layer {
bindings = <&tog MOU>;
key-positions = <6 7 8>;
require-prior-idle-ms = <200>;
bindings = <&tog MOU>;
layers = <DEF MOU>;
};

Expand Down Expand Up @@ -316,7 +315,7 @@

MOU {
bindings = <
&kp TAB &swapper &kp LS(LC(TAB)) &kp LC(TAB) &kp LG(RBKT) &msc SCRL_UP &msc SCRL_LEFT &mmv MOVE_UP &msc SCRL_RIGHT &kp BSPC
&kp TAB &kp LC(UP) &kp LS(LC(TAB)) &kp LC(TAB) &kp LG(RBKT) &msc SCRL_UP &msc SCRL_LEFT &mmv MOVE_UP &msc SCRL_RIGHT &kp BSPC
&kp LCTRL &kp LALT &kp LSHFT &kp LGUI &kp LG(LBKT) &msc SCRL_DOWN &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_RIGHT &kp ENTER
&hrml GLOBE LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &kp F18 &kp LC(UP) &mkp MB4 &mkp MCLK &mkp MB4 &kp DEL
&tog MOU &kp RSHFT &mkp LCLK &mkp RCLK
Expand Down
7 changes: 2 additions & 5 deletions config/mouse.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#define ZMK_POINTING_DEFAULT_SCRL_VAL 20 // 10

#include <dt-bindings/zmk/pointing.h>
#include <input/processors.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>

// Based on @caksoylar's config, defaults in comments
&mmv {
Expand All @@ -22,10 +20,9 @@
};

// Add these lines to cradio.conf
// # Mouse config, requires PR #778
// # Mouse config
// CONFIG_ZMK_MOUSE=y
// CONFIG_ZMK_MOUSE_TICK_DURATION=8

// CONFIG_ZMK_POINTING_SMOOTH_SCROLLING=y

// Add the bellow lines do cradio.keymap

Expand Down

0 comments on commit 5a8bf62

Please sign in to comment.