From ba66668445382bcfaf55a680f721f13c192f8da5 Mon Sep 17 00:00:00 2001 From: Andre Patta Date: Fri, 17 May 2024 03:44:45 -0300 Subject: [PATCH] Update corne.keymap --- config/corne.keymap | 137 ++++++++++++++++++-------------------------- 1 file changed, 55 insertions(+), 82 deletions(-) diff --git a/config/corne.keymap b/config/corne.keymap index 968f726ee..bd07832f1 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -5,92 +5,65 @@ */ #include -#include #include - -&sk { - quick-release; - lazy; -}; +#include / { - macros { - Double_Quotes: Double_Quotes { - compatible = "zmk,behavior-macro"; - #binding-cells = <0>; - bindings = <&kp DOUBLE_QUOTES &kp SPACE>, <¯o_press>; - - label = "DOUBLE_QUOTES"; - }; - - Single_Quote: Single_Quote { - compatible = "zmk,behavior-macro"; - #binding-cells = <0>; - bindings = <&kp SINGLE_QUOTE &kp SPACE>, <¯o_press>; - - label = "SINGLE_QUOTE"; - }; - - macro_alt_tab_app: macro_alt_tab_app { - compatible = "zmk,behavior-macro"; - #binding-cells = <0>; - bindings = <&kp LCMD &kp GRAVE>, <¯o_press>; - - label = "MACRO_ALT_TAB_APP"; - }; - }; - - combos { compatible = "zmk,combos"; }; - - keymap { - compatible = "zmk,keymap"; - - default_layer { - // ----------------------------------------------------------------------------------------- - // | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP | - // | ESC | A | S | D | F | G | | H | J | K | L | ; | ' | - // | SHFT | Z | X | C | V | B | | N | M | , | . | / | ALT | - // | GUI | LWR | SPC | | ENT | RSE | CTRL| - - display-name = "Base"; - bindings = < -&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BACKSPACE -&mt LEFT_SHIFT ESCAPE &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp ENTER -&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp LALT - &kp LGUI &mo 2 &kp SPACE &kp RALT &mo 1 &sk LEFT_SHIFT - >; + behaviors { + tp: tap_preferred { + compatible = "zmk,behavior-hold-tap"; + label = "TAP_PREFERRED"; + #binding-cells = <2>; + tapping-term-ms = <150>; + quick-tap-ms = <0>; + flavor = "tap-preferred"; + bindings = <&kp>, <&kp>; + }; }; - 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 | | CTRL| - - display-name = "Lower"; - bindings = < -&trans &trans &kp NUMBER_1 &kp NUMBER_2 &kp NUMBER_3 &trans &Double_Quotes &kp LEFT_BRACE &kp RIGHT_BRACE &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &trans -&bt BT_CLR &bt BT_SEL 0 &kp NUMBER_4 &kp N5 &kp NUMBER_6 &kp DOLLAR &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp APOSTROPHE &kp HOME -&trans &trans &kp NUMBER_7 &kp NUMBER_8 &kp NUMBER_9 &kp NUMBER_0 &Single_Quote &kp LEFT_BRACKET &kp RIGHT_BRACKET &trans &trans &kp END - &kp LGUI &trans &kp SPACE &trans &trans &trans - >; - }; - - raise_layer { - // ----------------------------------------------------------------------------------------- - // | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP | - // | ESC | | | | | | | - | = | [ | ] | \ | ` | - // | SHFT | | | | | | | _ | + | { | } | "|" | ~ | - // | GUI | | SPC | | ENT | | CTRL| - - display-name = "Raise"; - bindings = < -&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTERISK &kp MINUS &kp PLUS &trans -&trans &trans &kp TILDE &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &Double_Quotes &kp EXCLAMATION &kp EQUAL &kp COLON &kp PIPE &kp SQT &trans -&trans &trans &kp GRAVE &kp PIPE &kp BACKSLASH &Single_Quote &kp UNDER &kp LESS_THAN &kp GREATER_THAN &trans &trans &trans - &kp LGUI &trans &kp SPACE &trans &trans &trans - >; + keymap { + compatible = "zmk,keymap"; + + default_layer { +// ----------------------------------------------------------------------------------------- +// | TAB | Q | W | E | R | T | | Y | U | I | O | P | ESC | +// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' | +// | SHFT | Z | X | C | V | B | | N | M | , | . | / | SHFT | +// | GUI | LWR | ALT/ENT | | HYPER/SPC | BKSP | RSE | + bindings = < + &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp ESC + &kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &tp LC(LS(LALT)) SQT + &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 LGUI &mo 1 &tp LALT RET &tp LC(LS(LA(LGUI))) SPACE &kp BSPC &mo 2 + >; + }; + + layer_below { +// ----------------------------------------------------------------------------------------- +// | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | \ | +// | | 1 | 2 | 3 | 4 | 5 | | - | = | ` | [ | ] | "|" | +// | SHFT | 6 | 7 | 8 | 9 | 0 | | _ | + | ~ | { | } | RSHFT | +// | GUI | | ALT/ENT | | HYPER/SPACE | BKSP | | + bindings = < + &trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSLH + &trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp MINUS &kp EQUAL &kp GRAVE &kp LBKT &kp RBKT &kp PIPE + &kp LSHFT &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp UNDER &kp PLUS &kp TILDE &kp LBRC &kp RBRC &kp RSHFT + &kp LGUI &trans &tp LALT RET &tp LC(LS(LA(LGUI))) SPACE &kp BSPC &trans + >; + }; + + layer_above { +// ----------------------------------------------------------------------------------------- +// | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | | +// | | Prev | Next | Vol - | Vol + | Play/Pause | | | LFT | DWN | UP | RGT | | | +// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | | | +// | | | | | | | | + bindings = < + &trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans + &trans &kp C_PREV &kp C_NEXT &kp C_VOL_DN &kp C_VOL_UP &kp C_PP &kp LEFT &kp DOWN &kp UP &kp RIGHT &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 + &trans &trans &trans &trans &trans &trans + >; + }; }; - }; };