Skip to content

Commit

Permalink
mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
ochief committed Dec 6, 2024
1 parent e15b66d commit 43c85b0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
2 changes: 2 additions & 0 deletions config/defines.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define NUM 1
#define NAV 2
#define MIS 3
#define MOU 4

/* Key Position Groups */
#define KEYS_L 0 1 2 3 4 10 11 12 13 14 20 21 22 // left-hand keys
Expand All @@ -19,6 +20,7 @@
// default
#define DEF_NAV_SPC &lt NAV SPACE
#define DEF_NUM_SFT &lst NUM LSHFT
#define DEF_MOUSE &mo MOU

#define DEF_R &hml LGUI R
#define DEF_S &hml LALT S
Expand Down
27 changes: 27 additions & 0 deletions config/mouse.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#define ZMK_MOUSE_DEFAULT_MOVE_VAL 1500 // 600
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10

#include <dt-bindings/zmk/mouse.h>

// Config from @caksoylar, defaults in comments
&mmv {
acceleration-exponent = <1>; // 1
time-to-max-speed-ms = <500>; // 300
delay-ms = <0>; // 0
};

&msc {
acceleration-exponent = <1>; // 0
time-to-max-speed-ms = <40>; // 300
delay-ms = <0>; // 0
};

#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

22 changes: 18 additions & 4 deletions config/wasfoora.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@
#include "combos.dtsi"
#include "behaviors.dtsi"
#include "macros.dtsi"
#include "mouse.dtsi"

// DELETE WORDS ETC?
// LEFT HAND - diagonal lower tab (on nav shift tab) / esc on upper
// RIGHT HAND - what is useful? .space shift
// right hand shift for DQT, home row bracket pairingscd
// maybe backspace word instead of tab?
// right shift and key next to it for ALT+SPACE left hand side for puntuation with auto enter capitals etc "DOT ENTER SHIFT", "COMMA" (make the one on the first layer "COMMA SPACE"), "DOT" (make the one on the first layer "DOT SPACE SHIFT")
// https://rndkbd.com/products/sprit-springs?variant=43822770847978 with Oil Kings
/ {
Expand All @@ -39,7 +42,7 @@
DEF_R DEF_S DEF_N DEF_T &kp B &kp J DEF_H DEF_E DEF_I DEF_A
&kp W &kp M &kp G &kp D DEF_COMMA DEF_DOT

XXXXXXXXXX DEF_NAV_SPC DEF_NUM_SFT XXXXXXXXXX
DEF_MOUSE DEF_NAV_SPC DEF_NUM_SFT XXXXXXXXXX
>;
};

Expand All @@ -50,7 +53,7 @@
NUM_PERCENT NUM_STAR NUM_UNDER NUM_MINUS &kp DOLLAR &kp EQUAL NUM_N0 NUM_N1 NUM_N2 NUM_N3
&kp PLUS NUM_PIPE NUM_AMPS NUM_N4 NUM_N5 NUM_N6

XXXXXXXXXX __________ __________ XXXXXXXXXX
__________ __________ __________ XXXXXXXXXX
>;
};

Expand All @@ -61,7 +64,7 @@
NAV_SCREENS NAV_INCOG NAV_SWAP NAV_TAB NAV_SEL_AL NAV_SEL_LI NAV_LEFT NAV_DOWN NAV_RIGHT NAV_THREAD
NAV_CUT NAV_COPY NAV_PASTE &kp ENTER &kp BSPC &kp DEL

XXXXXXXXXX __________ __________ XXXXXXXXXX
__________ __________ __________ XXXXXXXXXX
>;
};

Expand All @@ -72,7 +75,18 @@
MIS_BITWAR &kp F2 &kp F11 &kp F6 &kp F12 &bt BT_CLR MIS_BT_1 MIS_BT_2 MIS_BT_3 MIS_GENERAT
&soft_off UK_TILDE MIS_CAD MIS_SLEEP &kp CARET &bootloader

XXXXXXXXXX __________ __________ XXXXXXXXXX
__________ __________ __________ XXXXXXXXXX
>;
};

MOU_layer {
label = "MOUSE";
bindings = <
XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX U_MS_U XXXXXXXXXX XXXXXXXXXX
XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX U_MS_L U_MS_D U_MS_R XXXXXXXXXX
XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX

__________ __________ __________ XXXXXXXXXX
>;
};
};
Expand Down

0 comments on commit 43c85b0

Please sign in to comment.