Skip to content

Commit

Permalink
Add scroll layer and try auto-mouse layer again
Browse files Browse the repository at this point in the history
Signed-off-by: Eren Atas <eren_atas@hotmail.com>
  • Loading branch information
erenatas committed Apr 13, 2024
1 parent 91955a9 commit 16492cb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 25 deletions.
4 changes: 2 additions & 2 deletions config/boards/shields/charybdis/charybdis_right.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
spi-max-frequency = <2000000>;
irq-gpios = <&gpio0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
/* optional features */
scroll-layers = <1>;
// automouse-layer = <4>;
scroll-layers = <5>;
automouse-layer = <4>;
// snipe-layers = <1>;
};
};
Expand Down
65 changes: 42 additions & 23 deletions config/charybdis.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@
#include <dt-bindings/zmk/mouse.h>
#include <dt-bindings/zmk/outputs.h>

&lt {
tapping-term-ms = <240>;
flavor = "tap-preferred";
quick-tap-ms = <150>;
require-prior-idle-ms = <10>;
};

&mt {
tapping-term-ms = <250>;
flavor = "tap-preferred";
require-prior-idle-ms = <250>;
};
#define U_TAPPING_TERM 200

/ {
chosen { zmk,matrix_transform = &default_transform; };
Expand All @@ -36,6 +25,11 @@
key-positions = <20 21>;
};

MiddleClickRight {
bindings = <&mkp MCLK>;
key-positions = <21 22>;
};

ParaLeft {
bindings = <&kp LEFT_PARENTHESIS>;
key-positions = <4 16>;
Expand Down Expand Up @@ -78,6 +72,22 @@
};

behaviors {
u_mt: u_mt {
compatible = "zmk,behavior-hold-tap";
label = "u_mt";
#binding-cells = <2>;
tapping_term_ms = <U_TAPPING_TERM>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
u_lt: u_lt {
compatible = "zmk,behavior-hold-tap";
label = "u_lt";
#binding-cells = <2>;
tapping_term_ms = <U_TAPPING_TERM>;
flavor = "tap-preferred";
bindings = <&mo>, <&kp>;
};
Shift_Enter: Shift_Enter {
compatible = "zmk,behavior-hold-tap";
label = "SHIFT_ENTER";
Expand All @@ -94,27 +104,27 @@

BASE {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp TAB &mt LEFT_GUI A &mt LEFT_ALT S &mt LCTRL D &mt LEFT_SHIFT F &kp G &kp H &mt LEFT_SHIFT J &mt RCTRL K &mt RIGHT_ALT L &mt RIGHT_GUI SEMI &kp APOS
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp LGUI
&mkp LCLK &kp SPACE &mo 1 &mo 2 &kp RET
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp TAB &u_mt LEFT_GUI A &u_mt LEFT_ALT S &u_mt LCTRL D &u_mt LEFT_SHIFT F &kp G &kp H &u_mt LEFT_SHIFT J &u_mt RCTRL K &u_mt RIGHT_ALT L &u_mt RIGHT_GUI SEMI &kp APOS
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp LGUI
&kp LGUI &kp SPACE &mo 1 &mo 2 &kp RET
>;
};

NAV {
bindings = <
&trans &trans &kp UP &trans &trans &trans &kp N7 &kp N8 &kp N9 &kp N0 &kp HOME &kp F1
&trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &kp N4 &mt RIGHT_SHIFT N5 &mt RCTRL N6 &trans &trans &kp F10
&trans &trans &trans &trans &trans &trans &kp N1 &kp N2 &kp N3 &trans &trans &kp F20
&trans &trans &trans &lt 3 BACKSPACE &kp LSHFT
&trans &trans &kp UP &trans &trans &trans &kp N7 &kp N8 &kp N9 &kp N0 &kp HOME &kp F1
&trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &kp N4 &u_mt RIGHT_SHIFT N5 &u_mt RCTRL N6 &trans &trans &kp F10
&trans &trans &trans &trans &trans &trans &kp N1 &kp N2 &kp N3 &trans &trans &kp F20
&trans &trans &trans &lt 3 BACKSPACE &kp LSHFT
>;
};

SYMNUM {
bindings = <
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp DEL
&trans &bt BT_CLR &bt BT_PRV &bt BT_NXT &trans &trans &kp UNDER &mt RIGHT_SHIFT EQUAL &mt RCTRL LBKT &mt RIGHT_ALT RBKT &mt RIGHT_GUI BSLH &kp GRAVE
&trans &out OUT_TOG &bootloader &trans &trans &trans &kp MINUS &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp DEL
&trans &bt BT_CLR &bt BT_PRV &bt BT_NXT &trans &trans &kp UNDER &u_mt RIGHT_SHIFT EQUAL &u_mt RCTRL LBKT &u_mt RIGHT_ALT RBKT &u_mt RIGHT_GUI BSLH &kp GRAVE
&trans &out OUT_TOG &bootloader &trans &trans &trans &kp MINUS &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&trans &trans &lt 3 TAB &trans &trans
>;
};
Expand All @@ -136,5 +146,14 @@
&mkp LCLK &mo 4 &mkp RCLK &trans &trans
>;
};

SCROLL {
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
>;
};
};
};

0 comments on commit 16492cb

Please sign in to comment.