Skip to content

Commit

Permalink
Update charybdis.keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
stylustrader authored Aug 1, 2024
1 parent 6834881 commit 9a8881c
Showing 1 changed file with 123 additions and 32 deletions.
155 changes: 123 additions & 32 deletions config/charybdis.keymap
Original file line number Diff line number Diff line change
@@ -1,56 +1,147 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#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>;
};

/ {
chosen { zmk,matrix_transform = &five_column_transform; };
};

/ {
combos {
compatible = "zmk,combos";

LeftClickRight {
bindings = <&mkp LCLK>;
key-positions = <16 17>;
};

RightClickRight {
bindings = <&mkp RCLK>;
key-positions = <17 18>;
};

ParaLeft {
bindings = <&kp LEFT_PARENTHESIS>;
key-positions = <3 13>;
};

ParaRight {
bindings = <&kp RIGHT_PARENTHESIS>;
key-positions = <6 16>;
};

BrakLeft {
bindings = <&kp LEFT_BRACKET>;
key-positions = <2 12>;
};

BrakRight {
bindings = <&kp RIGHT_BRACKET>;
key-positions = <7 17>;
};

BraceLeft {
bindings = <&kp LEFT_BRACE>;
key-positions = <1 11>;
};

BraceRight {
bindings = <&kp RIGHT_BRACE>;
key-positions = <8 18>;
};

Delete {
bindings = <&kp DELETE>;
key-positions = <7 8>;
};

keymap {
compatible = "zmk,keymap";
CapsWord {
bindings = <&caps_word>;
key-positions = <14 15>;
};
};

behaviors {
Shift_Enter: Shift_Enter {
compatible = "zmk,behavior-hold-tap";
label = "SHIFT_ENTER";
bindings = <&kp>, <&kp>;

Base {
label = "Base";
#binding-cells = <2>;
hold-trigger-key-positions = <34>;
tapping-term-ms = <100>;
};
};

keymap {
compatible = "zmk,keymap";

QWERTY {
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp ESC &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp 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 RSHIFT
&kp LCTRL &mo 1 &kp SPACE &kp RET &mo 2
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&mt LEFT_SHIFT A &mt LEFT_CONTROL S &mt LEFT_ALT D &mt LEFT_GUI F &kp G &kp H &mt LEFT_SHIFT J &mt LEFT_CONTROL K &mt LEFT_ALT L &mt LEFT_GUI SQT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH
&lt 3 ESCAPE &lt 1 SPACE &lt 2 TAB &lt 5 ENTER &lt 4 BACKSPACE
>;
trackball-bindings = <&tmv_coarse>;
};

Lower {
label = "Lower";
NAV {
bindings = <
&trans &kp K_PP &kp UP &kp N1 &kp N2 &kp N3 &kp N7 &kp N8 &kp N9 &kp N0 &kp HOME &trans
&trans &kp LEFT &kp DOWN &kp RIGHT &kp N4 &kp N5 &kp N4 &kp N5 &kp N6 &kp RIGHT &trans &kp F10
&kp LEFT_ALT &trans &trans &trans &kp MINUS &kp PLUS &kp N1 &kp N2 &kp N3 &kp DOT &trans &trans
&kp LGUI &trans &kp SPACE &kp RET &kp RCTRL
&trans &trans &trans &trans &trans &kp K_REDO &kp K_PASTE &kp K_COPY &kp K_CUT &kp K_UNDO
&kp LEFT_GUI &kp LEFT_ALT &kp LEFT_CONTROL &kp LEFT_SHIFT &trans &none &kp LEFT &kp DOWN &kp UP &kp RIGHT
&trans &trans &trans &trans &trans &kp INSERT &kp HOME &kp PAGE_DOWN &kp PAGE_UP &kp END
&trans &trans &trans &kp ENTER &kp BACKSPACE
>;
trackball-bindings = <&tmv_fine>;
};

Raise {
label = "Raise";
MOUSE {
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 &bt BT_SEL 0 &to 3 &kp UNDER &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
&trans &out OUT_TOG &trans &trans &trans &trans &kp MINUS &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&kp LGUI &kp LEFT_ALT &kp SPACE &kp RET &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&kp LEFT_GUI &kp LEFT_ALT &kp LEFT_CONTROL &kp LEFT_SHIFT &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &none &mkp LCLK &mkp RCLK &trans &trans
&trans &trans &trans &trans &trans
>;
trackball-bindings = <&tsl_fine>;
};

Mouse {
MEDIA {
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
&mkp MCLK &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &mkp LCLK
&mkp LCLK &trans &mkp RCLK &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&kp LEFT_GUI &kp LEFT_ALT &kp LEFT_CONTROL &kp LEFT_SHIFT &trans &bt BT_CLR &trans &trans &trans &bt BT_CLR_ALL
&trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4
&trans &trans &trans &trans &trans
>;
trackball-bindings = <&tmv_fine>;
};

NUM {
bindings = <
&kp LEFT_BRACKET &kp N7 &kp N8 &kp N9 &kp RIGHT_BRACKET &trans &trans &trans &trans &trans
&kp SEMICOLON &kp NUMBER_4 &kp N5 &kp NUMBER_6 &kp EQUAL &trans &kp LEFT_SHIFT &kp LEFT_CONTROL &kp LEFT_ALT &kp LEFT_GUI
&kp GRAVE &kp NUMBER_1 &kp NUMBER_2 &kp NUMBER_3 &kp BACKSLASH &trans &trans &trans &trans &trans
&kp PERIOD &kp N0 &kp MINUS &trans &trans
>;
};

FUN {
bindings = <
&kp F12 &kp F7 &kp F8 &kp F9 &kp PRINTSCREEN &trans &trans &trans &trans &trans
&kp F11 &kp F4 &kp F5 &kp F6 &kp SCROLLLOCK &trans &kp LEFT_SHIFT &kp LEFT_CONTROL &kp LEFT_ALT &kp LEFT_GUI
&kp F10 &kp F1 &kp F2 &kp F3 &kp PAUSE_BREAK &trans &trans &trans &trans &trans
&kp ESCAPE &kp SPACE &kp TAB &trans &trans
>;
};
};
};
};

0 comments on commit 9a8881c

Please sign in to comment.