From e58a7cca0c414cc52bf00e9502bf2132dd270481 Mon Sep 17 00:00:00 2001 From: Wardis <105614071+Woop91@users.noreply.github.com> Date: Sun, 7 Jul 2024 17:13:29 -0400 Subject: [PATCH] Update corne.keymap --- config/corne.keymap | 206 +++++++++++++++++++++++++++----------------- 1 file changed, 128 insertions(+), 78 deletions(-) diff --git a/config/corne.keymap b/config/corne.keymap index bda1add..c2e5350 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -6,15 +6,23 @@ //-------------------------------------------------------INCLUDE AREA----------------------------------------------------------------------------------------------- #include +#include #include #include -#define AS(keycode) &as LS(keycode) keycode +#include +#include + //-------------------------------------------------------COMBO-1----------------------------------------------------------------------------------------------- / { combos { compatible = "zmk,combos"; + Fdel { + bindings = <&kp DEL>; + key-positions = <10 11>; + }; + combo_esc { timeout-ms = <50>; key-positions = <10 9>; @@ -110,6 +118,16 @@ key-positions = <0 2 1>; }; + Trial2 { + bindings = <&kp K_LOCK>; + key-positions = <0 2 3 1>; + }; + + Trial3 { + bindings = <&caps_word>; + key-positions = <35 34 32 33>; + }; + Trial4 { bindings = <&bootloader>; key-positions = <>; @@ -177,89 +195,121 @@ }; }; - +//-----------------------------------------------------COMBO 2------------------------------------------------------------------------------------------------- +//---------------------------------------------------------COMBO-3--------------------------------------------------------------------------------------------- +//-------------------------------------------------------COMBO-4---------------------------------------------------------------------------------------------- +//-----------------------------------------------------COMBO-5------------------------------------------------------------------------------------------------ +//-------------------------------------------------------COMBO-6---------------------------------------------------------------------------------------------- +//------------------------------------------------------COMBO-7----------------------------------------------------------------------------------------------- +//-------------------------------------------------------COMBO-8---------------------------------------------------------------------------------------------- +//--------------------------------------------------------COMBO-9--------------------------------------------------------------------------------------------- +//-------------------------------------------------------COMBO-10---------------------------------------------------------------------------------------------- +//--------------------------------------------------------COMBO-11--------------------------------------------------------------------------------------------- +//--------------------------------------------------------COMBO-12--------------------------------------------------------------------------------------------- +//------------------------------------------------------------------END OF COMBOS------------------------------------------------------------------------------------ +//------------------------------------------------------------------------------------------------------------------------------------------------------ +//-------------------------------------------------------BEHAVIORS----------------------------------------------------------------------------------------------- / { - chosen { - zmk,matrix_transform = &five_column_transform; - }; - - as: auto_shift { + behaviors { + tp: tap_preferred { compatible = "zmk,behavior-hold-tap"; + label = "TAP_PREFERRED"; #binding-cells = <2>; - tapping_term_ms = <200>; - quick_tap_ms = <0>; + tapping-term-ms = <150>; + quick-tap-ms = <0>; flavor = "tap-preferred"; bindings = <&kp>, <&kp>; }; }; - keymap { - compatible = "zmk,keymap"; - - default_layer { -// ----------------------------------------------------------------------------------------- -// | Q | W | F | P | B | | J | L | U | Y | ; | -// | A | R | S | T | G | | M | N | E | I | O | -// | Z | X | C | D | V | | K | H | CTRL | META | . | -// | GUI | LWR | SPC | | ENT | RSE | BSPC | - display-name = "Base"; - bindings = < - &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMI - &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O - &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &kp LCTL &kp RALT AS(DOT) - &mo 1 &mo 2 &kp ESC &kp SPACE &kp RET &kp LEFT_GUI - >; - }; - - lower_layer { -// ----------------------------------------------------------------------------------------- -// | ! | @ | # | $ | % | | * | 7 | 8 | 9 | | -// | _ | \ | "|" | | CLR | | - | 4 | 5 | 6 | 0 | -// | | | , | . | = | | + | 1 | 2 | 3 | / | -// | | | ESC | | SPC | ALTE/NT | 0 | - display-name = "Lower"; - bindings = < - &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp KP_MULTIPLY &kp N7 &kp N8 &kp N9 &kp BACKSPACE - &kp UNDER &kp BSLH &kp PIPE &trans &kp KP_CLEAR &kp MINUS &kp N4 &kp N5 &kp N6 &kp N0 - &kp K_APP &trans &kp COMMA &kp DOT &kp EQUAL &kp PLUS &kp N1 &kp N2 &kp N3 &kp LBRC - &mo 1 &mo 2 &kp ESC &kp SPACE &kp RET &kp N0 - >; - }; - - raise_layer { -// ----------------------------------------------------------------------------------------- -// | TAB | PG_up | BWRSR BCK | UP | BWRSR FWD | bRIGHTNESS - | | BRI_UP | Prev | | Next | PNTSCRN | -// | CAPS Shift | PG_dwn | LFT | DWN | RGT | PRINT SCREEN | | RW | PP | FF | LEFT | RIGHT | -// | CONTROL | REDO | UNDO | CUT | COPY | PASTE | | | VOL - | MUTE | VOL +| | -// | RSE| LWR | ESC | | SPC | ALTE/NT | GUI | - - display-name = "Raise"; - bindings = < - - &kp PG_UP &kp C_AC_BACK &kp UP &kp C_AC_FORWARD &kp C_BRI_DN &kp C_BRI_UP &kp C_PREV &trans &kp C_NEXT &kp PRINTSCREEN - &kp PG_DN &kp LEFT &kp DOWN_ARROW &kp RIGHT &kp PRINTSCREEN &kp C_RW &kp C_PP &kp C_FF &kp LEFT &kp RIGHT - AS(GRAVE) &trans &trans AS(COMMA) &kp COLON &trans &kp C_VOL_DN &kp C_MUTE &kp C_VOL_UP &trans - &kp LGUI &kp ESC &kp SPACE AS(RET) &trans &kp TAB - - >; - }; - - layer_fnbt { -//---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -//| F1 | F2 | F3 | F4 | F5 | F16 | | | | | | | | -//| F7 | F8 | F9 | F10 | F11 | F12 | | | | | | | | -//| BT0 | BT1 | BT2 | BT3 | BT4 |BT CLEAR | | | | | | | | -// | RSE | LWR | ESC | | SPC | ALTE/NT | GUI | - - display-name = "FNBT"; - bindings = < - - &kp PG_UP &kp C_AC_BACK &kp UP &kp C_AC_FORWARD &kp C_BRI_DN &kp C_BRI_UP &kp C_PREV &trans &kp C_NEXT &kp PRINTSCREEN - &kp PG_DN &kp LEFT &kp DOWN_ARROW &kp RIGHT &kp PRINTSCREEN &kp C_RW &kp C_PP &kp C_FF &kp LEFT &kp RIGHT - AS(GRAVE) &trans &trans AS(COMMA) &kp COLON &trans &kp C_VOL_DN &kp C_MUTE &kp C_VOL_UP &trans - &kp LGUI &kp ESC &kp SPACE AS(RET) &trans &kp TAB - - >; - }; + + //------------------------------------------------------------------------------------------------------------------------------------------------------- + + keymap { + compatible = "zmk,keymap"; + + default_layer { + // ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // | TAB | Q | W | F | P Print| B | | J | L | U | Y | ; | BKSP | + // | CAPS Shift | A | R | S | T | G | | M | N | E | I | O | ' | + // | CTRL | Z Redo | X Undo | C Cut | D Copy | V Paste | | K | H | , | . | / | ALT | + // | RSE| LWR | ALT/ENT | | SPC | BKSP | GUI | + + bindings = < +&tp LA(TAB) TAB &kp Q &kp W &kp F &tp LC(P) P &kp B &kp J &kp L &kp U &kp Y &kp SEMI &kp BACKSPACE +&tp LSHFT CAPS &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O &kp SQT +&kp LCTRL &tp LC(Y) Z &tp LC(Z) X &tp LC(X) C &tp LC(C) D &tp LC(V) V &kp K &kp H &kp COMMA &kp DOT &tp FSLH RS(FSLH) &kp LALT + &mo 1 &mo 2 &kp ESC &kp SPACE &kp RET &kp LEFT_GUI + >; + }; + + layer_above { + // ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // | ~ | ! | @ | # | $ | % | | * | 7 | 8 | 9 | | BKSP | + // | & | _ | \ | "|" | | CLR | | - | 4 | 5 | 6 | 0 | | + // | ?? | | | , | . | = | | + | 1 | 2 | 3 | / | ALT | + // | | | ESC | | SPC | ALTE/NT | 0 | + + bindings = < +&kp TILDE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp KP_MULTIPLY &kp N7 &kp N8 &kp N9 &kp BACKSPACE &kp BSPC +&kp AMPS &kp UNDER &kp BSLH &kp PIPE &trans &kp KP_CLEAR &kp MINUS &kp N4 &kp N5 &kp N6 &kp N0 &trans +&kp K_APP &tog 3 &trans &kp COMMA &kp DOT &kp EQUAL &kp PLUS &kp N1 &kp N2 &tp DOT N3 &kp LBRC &kp LALT + &mo 1 &mo 2 &kp ESC &kp SPACE &kp RET &kp N0 + >; + }; + + layer_below { + // ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // | TAB | PG_up | BWRSR BCK | UP | BWRSR FWD | bRIGHTNESS - | | BRI_UP | Prev | | Next | PNTSCRN | | + // | CAPS Shift | PG_dwn | LFT | DWN | RGT | PRINT SCREEN | | | RW | PP | FF | LEFT | RIGHT | + // | CONTROL | REDO | UNDO | CUT | COPY | PASTE | | | VOL - | MUTE | VOL +| | | + // | RSE| LWR | ESC | | SPC | ALTE/NT | GUI | + + bindings = < +&tp LA(TAB) TAB &kp PG_UP &kp C_AC_BACK &kp UP &kp C_AC_FORWARD &kp C_BRI_DN &kp C_BRI_UP &kp C_PREV &trans &kp C_NEXT &kp PRINTSCREEN &trans +&tp LSHFT CAPS &kp PG_DN &kp LEFT &kp DOWN_ARROW &kp RIGHT &kp PRINTSCREEN &trans &kp C_RW &kp C_PP &kp C_FF &kp LEFT &kp RIGHT +&kp LCTRL &tp LC(Y) Z &tp LC(Z) X &tp LC(X) C &tp LC(C) D &tp LC(V) V &trans &kp C_VOL_DN &kp C_MUTE &kp C_VOL_UP &trans &trans + &mo 1 &mo 2 &kp ESC &kp SPACE &kp RET &kp LGUI + >; + }; + + layer_Qwerty { + // ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + // | TAB | Q | W | E | R | T | | Y | U | I | O | P | \ | BKSP | + // | CAPS | A | S | D | F | G | | H | J | K | L | ; | ' | ENTER | + // | LSHFT | Z | X | C | V | B | | N | M | , | . | /? | | ALT | + // | RSE| LWR | ESC | | SPC | ALTE/NT | GUI | + + 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 CAPS &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 RSHFT + &kp LCTRL &kp LALT &kp LGUI &kp SPACE &kp ENTER &kp ESC + >; + }; + + layer_fnbt { + //---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + //| F1 | F2 | F3 | F4 | F5 | F16 | | | | | | | | + //| F7 | F8 | F9 | F10 | F11 | F12 | | | | | | | | + //| BT0 | BT1 | BT2 | BT3 | BT4 |BT CLEAR| | | | | | | | + // | RSE| LWR | ESC | | SPC | ALTE/NT | GUI | + + bindings = < +&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &bt BT_CLR &trans &trans &trans &trans &trans +&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &mkp LCLK &mkp MB2 &none &bl BL_TOG &bl BL_CYCLE &trans +&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &sys_reset &bootloader &soft_off &rgb_ug RGB_TOG &rgb_ug RGB_EFF &trans + &mo 1 &mo 2 &kp ESC &kp SPACE &kp RETURN &kp LGUI + >; + }; + + layer_5 { + 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 +&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans + >; + }; }; -}; +};