From 76ff1908c0b9c922cb09851b61050f1b26f8fe9b Mon Sep 17 00:00:00 2001 From: potter-man <167421549+potter-man@users.noreply.github.com> Date: Thu, 30 May 2024 14:56:33 +0300 Subject: [PATCH] Keymap 1 --- .vscode/settings.json | 11 ++- .../shields/ergonaut_one/ergonaut_one.keymap | 85 +++++++++++++++---- 2 files changed, 77 insertions(+), 19 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1ea1216..ad65e86 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,14 @@ { "cSpell.words": [ - "Ergonaut" + "BSLH", + "Ergonaut", + "LALT", + "LCTRL", + "LGUI", + "LSHFT", + "RALT", + "RCTRL", + "RGUI", + "RSHFT" ] } diff --git a/config/boards/shields/ergonaut_one/ergonaut_one.keymap b/config/boards/shields/ergonaut_one/ergonaut_one.keymap index 6ee719e..a32f1db 100644 --- a/config/boards/shields/ergonaut_one/ergonaut_one.keymap +++ b/config/boards/shields/ergonaut_one/ergonaut_one.keymap @@ -1,11 +1,14 @@ #include #include #include +#include +#include #define DEF 0 #define LWR 1 #define RSE 2 #define ADJ 3 +#define CON 4 < { quick-tap-ms = <200>; @@ -20,8 +23,43 @@ compatible = "zmk,conditional-layers"; tri-layer { - if-layers = <1 2>; - then-layer = <3>; + if-layers = ; + then-layer = ; + }; + }; + + 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 = ; + key-positions = <10 11>; + bindings = <&kp BSPC>; + }; + combo_ret { + layers = ; + key-positions = <22 23>; + bindings = <&kp RET>; + }; + combo_con_layer_l { + layers = ; + key-positions = <38 39 40>; + bindings = <&mo CON>; + }; + combo_con_layer_r { + layers = ; + key-positions = <41 42 43>; + bindings = <&mo CON>; }; }; @@ -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 - < RSE TAB &mt LSHFT SPACE < LWR RET < LWR ESC &mt RSHFT BSPC < 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 + < RSE TAB &mt LCMD ESC < LWR SPACE < LWR SPACE &mt RCMD BSPC < 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 >; }; };