Skip to content

Commit

Permalink
Keymap 1
Browse files Browse the repository at this point in the history
  • Loading branch information
potter-man committed May 30, 2024
1 parent 6a0d0f8 commit 76ff190
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 19 deletions.
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"cSpell.words": [
"Ergonaut"
"BSLH",
"Ergonaut",
"LALT",
"LCTRL",
"LGUI",
"LSHFT",
"RALT",
"RCTRL",
"RGUI",
"RSHFT"
]
}
85 changes: 67 additions & 18 deletions config/boards/shields/ergonaut_one/ergonaut_one.keymap
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/mouse.h>
#include <dt-bindings/zmk/outputs.h>

#define DEF 0
#define LWR 1
#define RSE 2
#define ADJ 3
#define CON 4

&lt {
quick-tap-ms = <200>;
Expand All @@ -20,8 +23,43 @@
compatible = "zmk,conditional-layers";

tri-layer {
if-layers = <1 2>;
then-layer = <3>;
if-layers = <LWR RSE>;
then-layer = <ADJ>;
};
};

behaviors {
hmt: balanced_homerow_mods {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick-tap-ms = <0>;
flavor = "balanced";
bindings = <&kp>, <&kp>;
};
};

combos {
compatible = "zmk,combos";
combo_bspc {
layers = <DEF>;
key-positions = <10 11>;
bindings = <&kp BSPC>;
};
combo_ret {
layers = <DEF>;
key-positions = <22 23>;
bindings = <&kp RET>;
};
combo_con_layer_l {
layers = <DEF>;
key-positions = <38 39 40>;
bindings = <&mo CON>;
};
combo_con_layer_r {
layers = <DEF>;
key-positions = <41 42 43>;
bindings = <&mo CON>;
};
};

Expand All @@ -30,35 +68,46 @@

default_layer {
bindings = <
&mt LGUI RBKT &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
&mt LCTRL GRAVE &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &mt RCTRL SQT
&mt LALT MINUS &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mt RALT BSLH
&lt RSE TAB &mt LSHFT SPACE &lt LWR RET &lt LWR ESC &mt RSHFT BSPC &lt RSE DEL
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&gresc &hmt LSHFT A &hmt LCTRL S &hmt LALT D &hmt LCMD F &kp G &kp H &hmt RCMD J &hmt RALT K &hmt RCTRL L &hmt RSHFT SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &mt RBKT M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
&lt RSE TAB &mt LCMD ESC &lt LWR SPACE &lt LWR SPACE &mt RCMD BSPC &lt RSE RET
>;
};

lower_layer {
bindings = <
&mt LGUI F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&mt LCTRL PLUS &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &mt RCTRL MINUS
&mt LALT EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp RALT
&trans &trans &trans &trans &trans &trans
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&none &kp LSHFT &kp LCTRL &kp LALT &kp LCMD &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &none &none
&trans &none &none &none &none &none &kp HOME &kp PG_DN &kp PG_UP &kp END &none &trans
&trans &trans &trans &trans &trans &trans
>;
};

raise_layer {
bindings = <
&mt LGUI KP_NUM &kp KP_SLASH &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_MINUS &kp C_VOL_UP &kp HOME &kp PSCRN &kp PG_UP &kp SLCK &kp CLCK
&mt LCTRL EQUAL &kp KP_MULTIPLY &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_PLUS &kp C_MUTE &kp LEFT &kp UP &kp RIGHT &kp INS &mt RCTRL K_APP
&kp LALT &kp KP_N0 &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_DOT &kp C_VOL_DN &kp END &kp DOWN &kp PG_DN &kp PAUSE_BREAK &kp RALT
&trans &trans &trans &trans &trans &trans
&kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &kp LBKT &kp RBKT
&kp N1 &hmt LSHFT N2 &hmt LCTRL N3 &hmt LALT N4 &hmt LCMD N5 &kp N6 &kp N7 &hmt RCMD N8 &hmt RALT N9 &hmt RCTRL N0 &hmt RSHFT MINUS &kp EQUAL
&trans &none &none &none &none &kp LBRC &kp RBRC &none &kp COMMA &kp DOT &kp FSLH &trans
&trans &trans &trans &trans &trans &trans
>;
};

adjust_layer {
bindings = <
&bootloader &none &none &none &none &none &none &none &none &none &none &bootloader
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &bt BT_CLR
&sys_reset &none &none &none &none &none &none &none &none &none &none &sys_reset
&trans &none &trans &none &trans &trans
&kp C_BRI_DEC &kp C_BRI_INC &kp C_PIP &none &none &none &kp C_PREV &kp C_PP &kp C_NEXT &kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &mkp LCLK &mkp MCLK &mkp RCLK &none &none
&trans &none &trans &none &trans &trans
>;
};

connection_layer {
bindings = <
&bootloader &out OUT_BLE &out OUT_USB &none &none &none &none &none &none &none &none &bootloader
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &bt BT_CLR
&sys_reset &bt BT_DISC 0 &bt BT_DISC 1 &bt BT_DISC 2 &bt BT_DISC 3 &bt BT_DISC 4 &bt BT_DISC 4 &bt BT_DISC 3 &bt BT_DISC 2 &bt BT_DISC 1 &bt BT_DISC 0 &sys_reset
&none &none &none &none &none &none
>;
};
};
Expand Down

0 comments on commit 76ff190

Please sign in to comment.