Skip to content

Commit

Permalink
Mouse layer is back?
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Jan 15, 2025
1 parent daa09dd commit d10542f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/cradio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ CONFIG_ZMK_SLEEP=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# BLE connection improvements
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y

# Mouse config, requires PR #778
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_MOUSE_TICK_DURATION=8
20 changes: 20 additions & 0 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <behaviors/num_word.dtsi> // requires auto-layer module (https://github.com/urob/zmk-auto-layer)
#include "mouse.dtsi"

#define DEF 0
#define NUM 1
Expand All @@ -11,6 +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 HYPER LG(LS(LC(LALT))) // HYPER key for another shortcut layer

Expand Down Expand Up @@ -76,6 +78,13 @@
layers = <DEF NUM>;
};

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

toggle_caps_word {
key-positions = <12 17>;
bindings = <&caps_word>;
Expand Down Expand Up @@ -276,6 +285,8 @@
>;
};



AOE {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &trans &trans &trans &trans &trans
Expand Down Expand Up @@ -303,5 +314,14 @@
>;
};

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 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
>;
};

};
};
6 changes: 6 additions & 0 deletions config/mouse.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
delay-ms = <0>; // 0
};

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


// Add the bellow lines do cradio.keymap

// Include and layer definition
Expand Down

0 comments on commit d10542f

Please sign in to comment.