Skip to content

Commit

Permalink
chore: load personal corne config
Browse files Browse the repository at this point in the history
  • Loading branch information
stickyburn committed Sep 3, 2024
1 parent 180ae08 commit 5bcb3a9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 35 deletions.
4 changes: 2 additions & 2 deletions config/corne.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Uncomment the following lines to enable the Corne RGB Underglow
CONFIG_ZMK_RGB_UNDERGLOW=y
CONFIG_WS2812_STRIP=y
#CONFIG_ZMK_RGB_UNDERGLOW=y
#CONFIG_WS2812_STRIP=y

# Uncomment the following line to enable the Corne OLED Display
CONFIG_ZMK_DISPLAY=y
Expand Down
79 changes: 46 additions & 33 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,63 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

#define DEFAULT 0
#define LOWER 1
#define RAISE 2
#define NAV 3

/ {
behaviors {
htp: homerow_mods {
compatible = "zmk,behavior-hold-tap";
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <250>;
quick-tap-ms = <0>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
};

keymap {
compatible = "zmk,keymap";

default_layer {
// -----------------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP |
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | ESC |
// | GUI | LWR | SPC | | ENT | RSE | ALT |
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 LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
&kp TAB &htp LS(Q) Q &htp LS(W) W &htp LS(F) F &htp LS(P) P &htp LS(G) G &htp LS(J) J &htp LS(L) L &htp LS(U) U &htp LS(Y) Y &htp LS(SEMI) SEMI &kp ESC
&kp LALT &htp LS(A) A &htp LS(R) R &htp LS(S) S &htp LS(T) T &htp LS(D) D &htp LS(H) H &htp LS(N) N &htp LS(E) E &htp LS(I) I &htp LS(O) O &htp LS(SQT) SQT
&kp LSHFT &htp LS(Z) Z &htp LS(X) X &htp LS(C) C &htp LS(V) V &htp LS(B) B &htp LS(K) K &htp LS(M) M &htp SEMI COMMA &htp LS(DOT) DOT &htp LS(FSLH) FSLH &mo 1
&kp BSPC &htp LCTL BSPC &kp RET &kp RET &lt 2 SPC &mo 3
>;
};
lower_layer {
// -----------------------------------------------------------------------------------------
// | TAB | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP |
// | BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | LFT | DWN | UP | RGT | | |
// | SHFT | | | | | | | | | | | | |
// | GUI | | SPC | | ENT | | ALT |

system {
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
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
&kp LSHFT &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
>;
};
&kp F8 &kp F1 &kp F2 &kp F3 &trans &trans &trans &trans &trans &trans &trans &kp F8
&trans &trans &trans &trans &trans &trans &out OUT_TOG &trans &kp C_VOL_UP &kp C_VOL_DN &kp C_MUTE &trans
&trans &trans &trans &trans &trans &trans &bt BT_CLR &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 &trans
>;
};

raise_layer {
// -----------------------------------------------------------------------------------------
// | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
// | CTRL | | | | | | | - | = | [ | ] | \ | ` |
// | SHFT | | | | | | | _ | + | { | } | "|" | ~ |
// | GUI | | SPC | | ENT | | ALT |
symbols {
bindings = <
&kp TAB &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSPC
&kp LCTRL &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
&kp LSHFT &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
>;
};
&kp GRAVE &htp LS(N1) N1 &htp LS(N2) N2 &htp LS(N3) N3 &htp LS(N4) N4 &htp LS(N5) N5 &htp LS(N6) N6 &htp LS(N7) N7 &htp LS(N8) N8 &htp LS(N9) N9 &htp LS(N0) N0 &trans
&kp PIPE &kp EQUAL &kp MINUS &kp UNDER &kp COLON &kp TILDE &kp PG_UP &kp LEFT &kp UP &kp DOWN &kp RIGHT &trans
&kp BSLH &kp GT &kp PLUS &kp RBRC &kp SEMI &kp GRAVE &kp PG_DN &kp DEL &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};

brackets {
bindings = <
&kp GRAVE &htp LS(N1) N1 &htp LS(N2) N2 &htp LS(N3) N3 &htp LS(N4) N4 &htp LS(N5) N5 &htp LS(N6) N6 &htp LS(N7) N7 &htp LS(N8) N8 &htp LS(N9) N9 &htp LS(N0) N0 &trans
&trans &kp LT &kp LBRC &kp LBKT &kp LPAR &kp COLON &kp PG_UP &kp LEFT &kp UP &kp DOWN &kp RIGHT &trans
&trans &kp GT &kp RBRC &kp RBKT &kp RPAR &kp UNDER &kp PG_DN &kp DEL &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
};
};
};

0 comments on commit 5bcb3a9

Please sign in to comment.