Skip to content

Commit

Permalink
try again with my mouse keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
dryice committed Sep 28, 2024
1 parent c5a3b5d commit 8018407
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/mouse.h>

#define DEFAULT 0
#define SYMBOLS 1
#define NAVIGATION 2
#define BLUETOOTH 3
#define FUNCTIONS 4
#define MOUSE 5

// Macro to apply momentary-layer-on-hold/toggle-layer-on-tap to a specific layer
#define MO_TOG(layer) &mo_tog layer layer
Expand Down Expand Up @@ -121,5 +123,41 @@
>;
};

// This is for https://github.com/zmkfirmware/zmk/pull/2027
mouse_layer {
// -----------------------------------------------------------------------------------------
// | | | | | | | | MClick | LClick | RClick | | | |
// | | none | none | none | none| LClick | | LClick | MOVE_DOWN | MOVE_UP | MOVE_LEFT | MOVE_RIGHT | none |
// | | none | none | none | none | none | | none | SCRL_DOWN | SCRL_UP | SCRL_LEFT | SCRL_RIGHT | |
// | | | | | | | |
bindings = <
&trans &trans &trans &trans &trans &trans &mkp MCLK &mkp LCLK &mkp RCLK &none &none &none
&trans &trans &trans &trans &trans &mkp LCLK &mkp LCLK &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_LEFT &mmv MOVE_RIGHT &none
&trans &none &none &none &none &none &none &msc SCRL_DOWN &msc SCRL_UP &msc SCRL_LEFT &msc SCRL_RIGHT &trans
&trans &trans &trans &trans &trans &trans
>;
};



// // This is for https://github.com/zmkfirmware/zmk/pull/778
// mouse_layer {
// // -----------------------------------------------------------------------------------------
// // | | | | | | | | MClick | LClick | RClick | | | |
// // | | none | none | none | none| LClick | | LClick | MOVE_DOWN | MOVE_UP | MOVE_LEFT | MOVE_RIGHT | none |
// // | | none | none | none | none | none | | none | SCRL_DOWN | SCRL_UP | SCRL_LEFT | SCRL_RIGHT | |
// // | | | | | | | |
// bindings = <
// &trans &trans &trans &trans &trans &trans &mkp MCLK &mkp LCLK &mkp RCLK &none &none &none
// &trans &trans &trans &trans &trans &mkp LCLK &mkp LCLK &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_LEFT &mmv MOVE_RIGHT &none
// &trans &none &none &none &none &none &none &mwh SCROLL_DOWN &mwh SCROLL_UP &mwh SCROLL_LEFT &mwh SCROLL_RIGHT &trans
// &trans &trans &trans &trans &trans &trans
// >;
// };



// these 2 are global

};
};

0 comments on commit 8018407

Please sign in to comment.