Skip to content

Commit

Permalink
update keymap
Browse files Browse the repository at this point in the history
sky-bro committed May 29, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent d0e2f10 commit 451fa64
Showing 2 changed files with 22 additions and 27 deletions.
23 changes: 22 additions & 1 deletion config/cradio.keymap
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Copyright (c) 2022 The ZMK Contributors
// SPDX-License-Identifier: MIT

#include "mouse.dtsi"
#define ZMK_MOUSE_DEFAULT_MOVE_VAL 2500 // 600
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10

#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
@@ -15,6 +17,15 @@
#define TRI 4
#define MOUSE 5

#define U_MS_U &mmv MOVE_UP
#define U_MS_D &mmv MOVE_DOWN
#define U_MS_L &mmv MOVE_LEFT
#define U_MS_R &mmv MOVE_RIGHT
#define U_WH_U &msc SCRL_UP
#define U_WH_D &msc SCRL_DOWN
#define U_WH_L &msc SCRL_LEFT
#define U_WH_R &msc SCRL_RIGHT

/ {
chosen {
zmk,charmap = &charmap_us;
@@ -30,6 +41,16 @@
global-quick-tap;
bindings = <&kp>, <&kp>;
};
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
delay-ms = <0>; // 10
};
};

conditional_layers {
26 changes: 0 additions & 26 deletions config/mouse.dtsi

This file was deleted.

0 comments on commit 451fa64

Please sign in to comment.