Skip to content

Commit

Permalink
feat(keymap): add lshift-caps tap-dance
Browse files Browse the repository at this point in the history
  • Loading branch information
timonviola committed Nov 30, 2023
1 parent 7f47dc3 commit 6194483
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,21 @@
#define RAISE 2
#define MEDIA 3

// This is ok if only a single sticky key is used.
// Create new behavior if multiple &sk is used.
&sk {
quick-release;
};

/ {
behaviors {
td_caps: tap_dance_caps {
compatible = "zmk,behavior-tap-dance";
label = "TD_CAPS";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings = <&sk LSHFT>, <&kp CAPSLOCK>;
};
keymap {
compatible = "zmk,keymap";

Expand All @@ -37,7 +50,7 @@
// +------------------------------------------------------------------------------------+
bindings = <
&kp TAB &kp SEMI &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &kp BSPC
&kp LSHFT &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &kp DEL
&td_caps &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &kp DEL
&kp LCTRL &kp SQT &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z &kp ESC
&kp LGUI &mo LOWER &kp SPACE &kp RET &mo RAISE &kp RALT
>;
Expand All @@ -52,7 +65,7 @@
// +------------------------------------------------------------------------------------+
bindings = <
&kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
&kp LSHFT &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
&td_caps &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
&kp LCTRL &kp F6 &kp F7 &kp F8 &kp F9 &trans &trans &kp F10 &kp F11 &kp F12 &trans &trans
&kp LGUI &trans &kp SPACE &kp RET &mo MEDIA &kp RALT
>;
Expand All @@ -67,7 +80,7 @@
// +------------------------------------------------------------------------------------+
bindings = <
&kp TAB &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &kp BSPC
&kp LSHFT &kp TILDE &kp MINUS &kp LBKT &kp LPAR &kp COLON &kp BSLH &kp RPAR &kp RBKT &kp PLUS &kp EQUAL &kp GRAVE
&td_caps &kp TILDE &kp MINUS &kp LBKT &kp LPAR &kp COLON &kp BSLH &kp RPAR &kp RBKT &kp PLUS &kp EQUAL &kp GRAVE
&kp LCTRL &kp GLOBE &kp UNDER &kp QMARK &kp LBRC &kp DQT &kp SEMI &kp RBRC &trans &kp PIPE &kp FSLH &kp ESC
&kp LGUI &mo MEDIA &kp SPACE &kp RET &trans &kp RALT
>;
Expand Down

0 comments on commit 6194483

Please sign in to comment.