From 4700d6ed9f9e6bd25318fb8bbc3535c7c3ab2e65 Mon Sep 17 00:00:00 2001 From: Sora Nai Date: Sat, 2 Mar 2024 14:57:45 +0700 Subject: [PATCH] fix2 --- config/kyria_rev3.keymap | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/config/kyria_rev3.keymap b/config/kyria_rev3.keymap index bdf0e95..cd5f4f9 100644 --- a/config/kyria_rev3.keymap +++ b/config/kyria_rev3.keymap @@ -35,7 +35,8 @@ #define NUMBERS &to L_NUM #define KB_NAV &mo L_KB_NAV #define SPACE_KB_NAV &hmot L_KB_NAV SPACE -#define ENTER_OS_NAV &os_nav ENTER + +//#define ENTER_OS_NAV &os_nav ENTER #define MOD_AND_SYS_NAV &mom L_SYS_NAV OSM @@ -50,7 +51,6 @@ skq: sticky_key_quick_release { compatible = "zmk,behavior-sticky-key"; - label = "STICKY_KEY_QUICK_RELEASE"; #binding-cells = <1>; bindings = <&kp>; release-after-ms = <700>; // duration.extra-long1 @@ -60,7 +60,6 @@ skqht: sticky_hold_tap { compatible = "zmk,behavior-hold-tap"; - label = "HOMEROW_MODS"; #binding-cells = <2>; tapping-term-ms = <100>; // duration.short2 quick-tap-ms = <0>; @@ -70,7 +69,6 @@ hmot: hold_momentary_layer_tap { compatible = "zmk,behavior-hold-tap"; - label = "CUSTOM_LAYER_TAP"; #binding-cells = <2>; tapping-term-ms = <100>; // duration.short2 quick-tap-ms = <0>; @@ -78,15 +76,14 @@ bindings = <&mo>, <&kp>; }; - os_nav: system_nav_layer_with_mod_tap { - compatible = "zmk,behavior-hold-tap"; - label = "CUSTOM_LAYER_TAP"; - #binding-cells = <1>; - tapping-term-ms = <100>; // duration.short2 - quick-tap-ms = <0>; - flavor = "tap-preferred"; - bindings = , <&kp>; - }; + // os_nav: system_nav_layer_with_mod_tap { + // compatible = "zmk,behavior-hold-tap"; + // #binding-cells = <1>; + // tapping-term-ms = <100>; // duration.short2 + // quick-tap-ms = <0>; + // flavor = "tap-preferred"; + // bindings = , <&kp>; + // }; /** * tap: ь @@ -180,7 +177,7 @@ * 2. KB Layer alias * * Example: - * `&slto OS_EN L_EN` + * &slto OS_EN L_EN */ slto: select_lang_and_go_to_layer { label = "SYNC_LANG_AND_LAYER"; @@ -199,15 +196,14 @@ }; /** - * Temporarily switches to a layer (`&mo`) while a modifier is held. - * Analogous to QMKs `LM()`, using a parameterized macro. + * Temporarily switches to a layer (&mo) while a modifier is held * * Params: * 1. Layer to switch to * 2. Modifier to press while layer is active * * Example: - * `&mom NUM_LAYER LSHIFT` + * &mom NUM_LAYER LSHIFT */ mom: momentary_layer_with_modifier { compatible = "zmk,behavior-macro-two-param"; @@ -248,7 +244,7 @@ // ├───┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤─────────────┬─────────────╮ ╭─────────────┬─────────────├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼───┤ XXX &kp Z &kp X &kp C &kp V &kp B XXX XXX XXX XXX &kp N &kp M XXX XXX &bt BT_CLR XXX // ╰───┴─────────────┴─────────────┴─────────────┼─────────────┼─────────────┤─────────────┼─────────────┤ ├─────────────┼─────────────├─────────────┼─────────────┼─────────────┴─────────────┴─────────────┴───╯ - XXX CTRL ALT SPACE_KB_NAV XXX &kp TAB SHFT &kp DEL &kp ESC XXX + XXX CTRL ALT SPACE_KB_NAV MOD_AND_SYS_NAV &kp TAB SHFT &kp DEL &kp ESC XXX // ╰───┴─────────────┴─────────────┴─────────────┴─────────────╯ ╰─────────────┴─────────────┴─────────────┴─────────────┴───╯ >; };