Skip to content

Commit

Permalink
Try out the new ZMK mouse emulation stuff!
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewtodd committed Dec 26, 2024
1 parent c08ece6 commit e94867a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ can tinker a little more freely.

## Changes from Miryoku

- Removed the [mouse layer][miryoku-mouse-layer], for now. I'm watching
zmkfirmware/zmk#2477, which seems like it's close!
- Removed the [button layer][miryoku-button-layer], since I wasn't really using
it.
- Removed [additional features][miryoku-additional-features] (boot, base, tap,
Expand Down
36 changes: 28 additions & 8 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/pointing.h>

// Layer names
#define COLEMAK 0
#define STURDY 1
#define QWERTY 2
#define NAV 3
#define MEDIA 4
#define NUM 5
#define SYM 6
#define FUN 7
#define STURDY_NUM 8
#define STURDY_SYM 9
#define MOUSE 4
#define MEDIA 5
#define NUM 6
#define SYM 7
#define FUN 8
#define STURDY_NUM 9
#define STURDY_SYM 10

// Home row mods macro
#define HRML(k1,k2,k3,k4) &htl LCTRL k1 &htl LALT k2 &htl LGUI k3 &htl LSHFT k4
Expand Down Expand Up @@ -53,7 +55,7 @@
thumbs_default_left {
layers = <COLEMAK STURDY QWERTY>;
key-positions = <30 31>;
bindings = <&kp ESC>;
bindings = <&lt MEDIA ESC>;
timeout-ms = <50>;
};
thumbs_default_right {
Expand Down Expand Up @@ -91,7 +93,7 @@
&kp Z &kp X &kp C &kp D &kp V &kp K &kp H &kp COMMA &kp DOT &kp FSLH
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
// | | | | | |
&lt NAV SPACE &lt MEDIA TAB &lt SYM ENTER &lt NUM BSPC
&lt NAV SPACE &lt MOUSE TAB &lt SYM ENTER &lt NUM BSPC
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
>;
};
Expand Down Expand Up @@ -150,6 +152,24 @@
>;
};

mouse_layer {
bindings = <
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
//│ │ │ │ │ │ │ │ │ │ │ │
&none &none &none &none &none &none &none &none &none &none
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
//│ │ │ │ │ │ │ │ │ │ │ │
&kp LCTRL &kp LALT &kp LGUI &kp LSHFT &none &none &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_RIGHT
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
//│ │ │ │ │ │ │ │ │ │ │ │
&none &none &none &none &none &none &msc SCRL_RIGHT &msc SCRL_UP &msc SCRL_DOWN &msc SCRL_LEFT
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
// | | | | | |
&none &none &mkp RCLK &mkp LCLK
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
>;
};

media_layer {
bindings = <
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
Expand Down

0 comments on commit e94867a

Please sign in to comment.