better mouse
This commit is contained in:
parent
e3acc4ed17
commit
fa7b416a07
3 changed files with 59 additions and 19 deletions
|
@ -10,6 +10,8 @@
|
||||||
#define META 3
|
#define META 3
|
||||||
#define MOUSE 4
|
#define MOUSE 4
|
||||||
#define FN 5
|
#define FN 5
|
||||||
|
#define FAST 6
|
||||||
|
#define SLOW 7
|
||||||
|
|
||||||
#include "zmk-helpers/key-labels/42.h"
|
#include "zmk-helpers/key-labels/42.h"
|
||||||
#include <behaviors.dtsi>
|
#include <behaviors.dtsi>
|
||||||
|
@ -65,6 +67,8 @@ ZMK_HOLD_TAP(ht_mo,
|
||||||
&caps_word { // mods deactivate caps-word, requires PR #1451
|
&caps_word { // mods deactivate caps-word, requires PR #1451
|
||||||
/delete-property/ ignore-modifiers;
|
/delete-property/ ignore-modifiers;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
behaviors {
|
behaviors {
|
||||||
rpi: require_prior_idle {
|
rpi: require_prior_idle {
|
||||||
|
@ -163,19 +167,19 @@ ZMK_HOLD_TAP(ht_mo,
|
||||||
mouse_layer {
|
mouse_layer {
|
||||||
display-name = "mouse";
|
display-name = "mouse";
|
||||||
bindings = <
|
bindings = <
|
||||||
// ┌───────────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬────────────────┬────────────────┬────────────────┬─────┬───────────┐
|
// ┌───────────┬─────┬─────┬─────────┬─────────┬─────┐ ┌────────────────┬────────────────┬──────────────┬────────────────┬─────┬───────────┐
|
||||||
// │ │ │ │ │ │ │ │ │ │ &mmv MOVE_up │ │ │ │
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
// ├───────────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼────────────────┼────────────────┼────────────────┼─────┼───────────┤
|
// ├───────────┼─────┼─────┼─────────┼─────────┼─────┤ ├────────────────┼────────────────┼──────────────┼────────────────┼─────┼───────────┤
|
||||||
// │ │ │ │ │ │ │ │ │ &mmv MOVE_left │ &mmv MOVE_down │ &mmv MOVE_rght │ │ │
|
// │ │ │ │ mo SLOW │ mo FAST │ │ │ &mmv MOVE_left │ &mmv MOVE_down │ &mmv MOVE_up │ &mmv MOVE_rght │ │ │
|
||||||
// ├───────────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼────────────────┼────────────────┼────────────────┼─────┼───────────┤
|
// ├───────────┼─────┼─────┼─────────┼─────────┼─────┤ ├────────────────┼────────────────┼──────────────┼────────────────┼─────┼───────────┤
|
||||||
// │ tog MOUSE │ │ │ │ │ │ │ │ lclk │ mclk │ rclk │ │ tog MOUSE │
|
// │ tog MOUSE │ │ │ │ │ │ │ │ lclk │ mclk │ rclk │ │ tog MOUSE │
|
||||||
// └───────────┴─────┴─────┼─────┼─────┼─────┤ ├─────┼────────────────┼────────────────┼────────────────┴─────┴───────────┘
|
// └───────────┴─────┴─────┼─────────┼─────────┼─────┤ ├────────────────┼────────────────┼──────────────┼────────────────┴─────┴───────────┘
|
||||||
// │ │ │ │ │ │ &msc SCRL_down │ &msc SCRL_up │
|
// │ │ │ │ │ │ &msc SCRL_down │ &msc SCRL_up │
|
||||||
// └─────┴─────┴─────┘ └─────┴────────────────┴────────────────┘
|
// └─────────┴─────────┴─────┘ └────────────────┴────────────────┴──────────────┘
|
||||||
&trans &trans &trans &trans &trans &trans &trans &trans &mmv MOVE_UP &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
&trans &trans &trans &trans &trans &trans &trans &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_RIGHT &trans &trans
|
&trans &trans &trans &mo SLOW &mo FAST &trans &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_RIGHT &trans &trans
|
||||||
&tog MOUSE &trans &trans &trans &trans &trans &trans &mkp LCLK &mkp MCLK &mkp RCLK &trans &tog MOUSE
|
&tog MOUSE &trans &trans &trans &trans &trans &trans &mkp LCLK &mkp MCLK &mkp RCLK &trans &tog MOUSE
|
||||||
&trans &trans &trans &trans &msc SCRL_DOWN &msc SCRL_UP
|
&trans &trans &trans &trans &msc SCRL_DOWN &msc SCRL_UP
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
fn_layer {
|
fn_layer {
|
||||||
|
@ -196,5 +200,41 @@ ZMK_HOLD_TAP(ht_mo,
|
||||||
&trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
fast_layer {
|
||||||
|
display-name = "fast";
|
||||||
|
bindings = <
|
||||||
|
// ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐
|
||||||
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
// ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤
|
||||||
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
// ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤
|
||||||
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
// └─────┴─────┴─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┴─────┴─────┘
|
||||||
|
// │ │ │ │ │ │ │ │
|
||||||
|
// └─────┴─────┴─────┘ └─────┴─────┴─────┘
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
slow_layer {
|
||||||
|
display-name = "slow";
|
||||||
|
bindings = <
|
||||||
|
// ┌─────┬─────┬─────┬─────┬─────┬─────┐ ┌─────┬─────┬─────┬─────┬─────┬─────┐
|
||||||
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
// ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤
|
||||||
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
// ├─────┼─────┼─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┼─────┼─────┤
|
||||||
|
// │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||||
|
// └─────┴─────┴─────┼─────┼─────┼─────┤ ├─────┼─────┼─────┼─────┴─────┴─────┘
|
||||||
|
// │ │ │ │ │ │ │ │
|
||||||
|
// └─────┴─────┴─────┘ └─────┴─────┴─────┘
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|
|
||||||
// Based on @caksoylar's config, defaults in comments
|
// Based on @caksoylar's config, defaults in comments
|
||||||
&mmv {
|
&mmv {
|
||||||
acceleration-exponent = <0>; // 1
|
acceleration-exponent = <1>; // 1
|
||||||
time-to-max-speed-ms = <300>; // 300
|
time-to-max-speed-ms = <500>; // 300
|
||||||
delay-ms = <0>; // 0
|
delay-ms = <0>; // 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,11 +21,11 @@
|
||||||
|
|
||||||
&mmv_input_listener {
|
&mmv_input_listener {
|
||||||
warp {
|
warp {
|
||||||
layers = <NAV>;
|
layers = <FAST>;
|
||||||
input-processors = <&zip_xy_scaler 3 1>;
|
input-processors = <&zip_xy_scaler 3 1>;
|
||||||
};
|
};
|
||||||
precision {
|
precision {
|
||||||
layers = <SYM>;
|
layers = <SLOW>;
|
||||||
input-processors = <&zip_xy_scaler 1 2>;
|
input-processors = <&zip_xy_scaler 1 2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -42,11 +42,11 @@
|
||||||
|
|
||||||
&msc_input_listener {
|
&msc_input_listener {
|
||||||
warp {
|
warp {
|
||||||
layers = <NAV>;
|
layers = <FAST>;
|
||||||
input-processors = <&zip_scroll_scaler 2 1>;
|
input-processors = <&zip_scroll_scaler 2 1>;
|
||||||
};
|
};
|
||||||
precision {
|
precision {
|
||||||
layers = <SYM>;
|
layers = <SLOW>;
|
||||||
input-processors = <&zip_scroll_scaler 1 2>;
|
input-processors = <&zip_scroll_scaler 1 2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
BIN
draw/keymap.png
BIN
draw/keymap.png
Binary file not shown.
Before Width: | Height: | Size: 972 KiB After Width: | Height: | Size: 1.2 MiB |
Loading…
Add table
Add a link
Reference in a new issue