mirror of
https://github.com/Ajetski/corne-zmk-config.git
synced 2025-11-27 14:22:45 -10:00
mouse
This commit is contained in:
parent
a00fc77524
commit
4d92eaee34
@ -2,9 +2,10 @@
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
#include <dt-bindings/zmk/ext_power.h>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/mouse.h>
|
||||
#include <dt-bindings/zmk/outputs.h>
|
||||
#include <dt-bindings/zmk/rgb.h>
|
||||
#include <dt-bindings/zmk/mouse.h>
|
||||
|
||||
#define ZMK_MOUSE_DEFAULT_MOVE_VAL 2500 // 600
|
||||
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10
|
||||
#define U_MS_U &mmv MOVE_UP
|
||||
@ -15,6 +16,7 @@
|
||||
#define U_WH_D &msc SCRL_DOWN
|
||||
#define U_WH_L &msc SCRL_LEFT
|
||||
#define U_WH_R &msc SCRL_RIGHT
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
td0: td0 {
|
||||
@ -23,11 +25,13 @@
|
||||
#binding-cells = <0>;
|
||||
bindings = <&kp LEFT_SHIFT>, <&kp CAPS>;
|
||||
};
|
||||
|
||||
mmv {
|
||||
acceleration-exponent = <1>; // 1
|
||||
time-to-max-speed-ms = <300>; // 40
|
||||
delay-ms = <0>; // 0
|
||||
};
|
||||
|
||||
msc {
|
||||
acceleration-exponent = <0>; // 0
|
||||
time-to-max-speed-ms = <40>; // 500
|
||||
@ -54,6 +58,7 @@
|
||||
&kp C_MUTE &kp LGUI &mo 1 < 3 SPACE &kp RIGHT_ARROW < 3 ENTER &mo 2 &kp RALT
|
||||
&kp ENTER
|
||||
>;
|
||||
|
||||
label = "QWERTY";
|
||||
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
||||
};
|
||||
@ -74,7 +79,6 @@
|
||||
&trans &trans &trans &trans &trans &kp INS &kp DEL &trans
|
||||
&trans
|
||||
>;
|
||||
|
||||
};
|
||||
|
||||
raise_layer {
|
||||
@ -100,10 +104,11 @@
|
||||
bindings = <
|
||||
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11
|
||||
&trans &trans &mkp LCLK &mkp RCLK &sys_reset &bootloader &trans &bootloader &trans &trans &trans &kp PRINTSCREEN &kp F12
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp SCROLLLOCK &kp PAUSE_BREAK
|
||||
&trans &trans &mmv MOVE_UP &kp A &trans &trans &trans &trans &trans &trans &trans &kp SCROLLLOCK &kp PAUSE_BREAK
|
||||
&mkp MCLK &trans &trans &trans &trans &trans &trans &trans
|
||||
&trans
|
||||
>;
|
||||
|
||||
label = "Fn";
|
||||
sensor-bindings = <&inc_dec_kp PG_UP PG_DN>;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user