From b28ece257049bb94c0f821d7c27fd6c0639c3697 Mon Sep 17 00:00:00 2001 From: Alex Villarreal <716334+alexvy86@users.noreply.github.com> Date: Mon, 6 Mar 2023 22:55:04 -0600 Subject: [PATCH] Undo shrug helper In some Apps (e.g. VSCode) typing a letter while holding Alt opens up the top menus and screws up the input. Too risky until https://github.com/zmkfirmware/zmk/issues/232 is implemented. --- config/corneish_zen.keymap | 42 ++------------------------------------ 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/config/corneish_zen.keymap b/config/corneish_zen.keymap index 202942cdf..fc42f6c96 100644 --- a/config/corneish_zen.keymap +++ b/config/corneish_zen.keymap @@ -140,25 +140,6 @@ }; }; -#if !defined OS_UNICODE_LEAD - #if HOST_OS == 2 - #define OS_UNICODE_LEAD ¯o_press &kp LALT // macOS/Windows-Alt-Codes - #elif HOST_OS == 1 - #define OS_UNICODE_LEAD ¯o_tap &kp LS(LC(U)) // Linux - #else - #define OS_UNICODE_LEAD ¯o_press &kp LALT // Windows - #endif -#endif -#if !defined OS_UNICODE_TRAIL - #if HOST_OS == 2 - #define OS_UNICODE_TRAIL ¯o_release &kp LALT // macOS/Windows-Alt-Codes - #elif HOST_OS == 1 - #define OS_UNICODE_TRAIL ¯o_tap &kp SPACE // Linux - #else - #define OS_UNICODE_TRAIL ¯o_release &kp LALT // Windows - #endif -#endif - / { macros { // ZMK_MACRO(term, @@ -168,25 +149,6 @@ // , <¯o_tap &kp GRAVE> // , <¯o_release &kp LCTRL>; // ) - ZMK_MACRO(shrug, - wait-ms = <20>; - tap-ms = <20>; - bindings = - , <¯o_tap &kp KP_PLUS &kp N2 &kp N0 &kp N3 &kp E> - , - , <¯o_tap &kp BACKSLASH> - , <¯o_tap &kp UNDERSCORE> - , <¯o_tap &kp LEFT_PARENTHESIS> - , - , <¯o_tap &kp KP_PLUS &kp N3 &kp N0 &kp C &kp N4> - , - , <¯o_tap &kp RIGHT_PARENTHESIS> - , <¯o_tap &kp UNDERSCORE> - , <¯o_tap &kp SLASH> - , - , <¯o_tap &kp KP_PLUS &kp N2 &kp N0 &kp N3 &kp E> - , ; - ) }; }; @@ -247,7 +209,7 @@ label = "NAV"; bindings = < // ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮ - // ├ ┼ WIN PRV MON ┼ SNP WIN LFT ┼ SNP WIN RGT ┼ WIN NXT MON ┼ ┤ ├ Shrug Emoji ┼ ┼ PAGE UP ┼ PAGE DOWN ┼ ┼ ┤ + // ├ ┼ WIN PRV MON ┼ SNP WIN LFT ┼ SNP WIN RGT ┼ WIN NXT MON ┼ ┤ ├ ┼ ┼ PAGE UP ┼ PAGE DOWN ┼ ┼ ┤ // ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ // ├ ┼ LSHFT ┼ LALT ┼ LGUI ┼ LCTRL ┼ CONTEXT MENU┤ ├ HOME ┼ LEFT ┼ UP ┼ DOWN ┼ RIGHT ┼ END ┤ // ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤ @@ -255,7 +217,7 @@ // ╰───────────────────────────┴─────────────┼─────────────┼─────────────┼─────────────┤ ├─────────────┼─────────────┼─────────────┼─────────────┴───────────────────────────╯ // ├ ┼ ┼ // HELD // ┤ ├ BKSP ┼ DEL ┼ ┤ // ╰─────────────┴─────────────┴─────────────╯ ╰─────────────┴─────────────┴─────────────╯ - &none &kp GS_LFT &kp G_LFT &kp G_RGT &kp GS_RGT &none &shrug &none &kp PG_UP &kp PG_DN &none &none + &none &kp GS_LFT &kp G_LFT &kp G_RGT &kp GS_RGT &none &none &none &kp PG_UP &kp PG_DN &none &none &none &kp LSHFT &kp LALT &kp LGUI &kp LCTRL &kp K_APP &kp HOME &kp LEFT &kp UP &kp DOWN &kp RIGHT &kp END &none &kp PRV_VD &kp NXT_VD &kp PRV_TAB &kp NXT_TAB &kp CA_TAB &kp SPACE &none &none &none &none &none &none &none &trans &kp BSPC &kp DEL &none