Fix nibble keymap bug, add 'tilde escape' implementation that is similar to grave escape using mod-morph from zmk PR 543

This commit is contained in:
KemoNine 2021-01-20 03:38:25 +00:00
parent 3424c3b2f7
commit 330de8a4cc
2 changed files with 15 additions and 5 deletions

View file

@ -15,7 +15,7 @@ CONFIG_ZMK_WIDGET_WPM_STATUS=y
CONFIG_ZMK_SLEEP=n CONFIG_ZMK_SLEEP=n
# Add debug logging # Add debug logging
#CONFIG_ZMK_USB_LOGGING=y CONFIG_ZMK_USB_LOGGING=n
# Set default underglow values # Set default underglow values
CONFIG_ZMK_RGB_UNDERGLOW_HUE_START=25 CONFIG_ZMK_RGB_UNDERGLOW_HUE_START=25

View file

@ -22,6 +22,16 @@
sensors = <&encoder_1>; sensors = <&encoder_1>;
}; };
behaviors {
tildeesc: tilde_escape {
compatible = "zmk,behavior-mod-morph";
label = "TILDE_ESCAPE";
#binding-cells = <0>;
bindings = <&kp ESC>, <&kp TILDE>;
mods = <(MOD_LSFT)>;
};
};
keymap { keymap {
compatible = "zmk,keymap"; compatible = "zmk,keymap";
@ -31,10 +41,10 @@
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>; sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
bindings = < bindings = <
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BSPC &kp HOME &tildeesc &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS &kp EQUAL &kp BSPC &kp HOME
&kp C_MUTE &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH &kp PG_UP &kp C_MUTE &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH &kp PG_UP
&trans &mo LAYER_ID_ALT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp RET &kp PG_DN &trans &mo LAYER_ID_ALT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp RET &kp PG_DN
&trans &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 UP &kp END &trans &kp LSHFT &none &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT &kp UP &kp END
&trans &kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo LAYER_ID_FUNC &kp RCTRL &kp RALT &kp LEFT &kp DOWN &kp RIGHT &trans &kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo LAYER_ID_FUNC &kp RCTRL &kp RALT &kp LEFT &kp DOWN &kp RIGHT
>; >;
}; };
@ -47,7 +57,7 @@
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp DEL &kp DEL &kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp DEL &kp DEL
&trans &kp CAPS &trans &kp PG_UP &kp UP &kp PG_DN &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp INS &trans &kp CAPS &trans &kp PG_UP &kp UP &kp PG_DN &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp INS
&none &trans &trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &trans &trans &trans &trans &trans &trans &kp PSCRN &none &trans &trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &trans &trans &trans &trans &trans &trans &kp PSCRN
&none &trans &trans &kp HOME &trans &kp END &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &trans &none &trans &kp HOME &trans &kp END &trans &trans &trans &trans &trans &trans &trans &trans &trans
&none &trans &trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_PP &kp C_NEXT &none &trans &trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_PP &kp C_NEXT
>; >;
}; };
@ -60,7 +70,7 @@
&trans &kp LA(F1) &kp LA(F2) &kp LA(F3) &kp LA(F4) &kp LA(F5) &kp LA(F6) &kp LA(F7) &kp LA(F8) &kp LA(F9) &kp LA(F10) &kp LA(F11) &kp LA(F12) &trans &trans &trans &kp LA(F1) &kp LA(F2) &kp LA(F3) &kp LA(F4) &kp LA(F5) &kp LA(F6) &kp LA(F7) &kp LA(F8) &kp LA(F9) &kp LA(F10) &kp LA(F11) &kp LA(F12) &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
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &trans &none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>; >;
}; };