From 37e79aaf3b8e8aa53ebfc9de06f786745a9ec8a5 Mon Sep 17 00:00:00 2001 From: ldebritto Date: Tue, 10 Dec 2024 14:29:37 -0300 Subject: [PATCH] Back to old &num_word combo and removal of NMT --- config/cradio.keymap | 70 ++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 44 deletions(-) diff --git a/config/cradio.keymap b/config/cradio.keymap index 8a08dec..f08e310 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -4,11 +4,10 @@ #include // requires auto-layer module (https://github.com/urob/zmk-auto-layer) #define DEF 0 -#define NMT 1 // No-mod-taps for if I regret setting mod-taps and can't access my code or can't update my firmware on the keyboard -#define NUM 2 -#define NAV 3 -#define SYM 4 -#define FUN 5 +#define NUM 1 +#define NAV 2 +#define SYM 3 +#define FUN 4 #define HYPER LG(LS(LC(LALT))) @@ -58,33 +57,26 @@ key-positions = <30 31>; bindings = <&tog NAV>; require-prior-idle-ms = <200>; - layers = ; + layers = ; }; sticky_sym_layer_for_one_handed_activation { key-positions = <32 33>; bindings = <&sk SYM>; // usually just one symbol is used, so a &sk is better than &tog require-prior-idle-ms = <200>; - layers = ; + layers = ; }; toggle_num_word { - key-positions = <21 22 23>; + key-positions = <12 30>; bindings = <&num_word NUM>; // requires auto-layer module (https://github.com/urob/zmk-auto-layer) - layers = ; + layers = ; }; toggle_caps_word { key-positions = <12 17>; bindings = <&caps_word>; - layers = ; - require-prior-idle-ms = <200>; - }; - - toggle_no_mod_taps { - key-positions = <14 15>; - bindings = <&tog NMT>; - layers = ; + layers = ; require-prior-idle-ms = <200>; }; @@ -166,6 +158,18 @@ hold-while-undecided; }; + hpl: hold_preferred_layer_tap { // Same as before, but with a &lc option + compatible = "zmk,behavior-hold-tap"; + label = "THUMB_LC"; + bindings = <&lc>, <&kp>; + + #binding-cells = <2>; + flavor = "hold-preferred"; + tapping-term-ms = <100>; + quick-tap-ms = <175>; + hold-while-undecided; + }; + swapper: swapper_for_apple_cmd_tab { compatible = "zmk,behavior-tri-state"; // requires tri-state module (https://github.com/urob/zmk-tri-state) #binding-cells = <0>; @@ -241,27 +245,17 @@ &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &hrml LCTRL A &hrml LALT S &hrml LSHFT D &hrml LGUI F &hrml HYPER G &hrmr HYPER H &hrmr RGUI J &hrmr LSHFT K &hrmr RALT L &hrmr RCTRL SQT &hrml GLOBE Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI - &lc NAV &kp RSHFT &kp SPACE &lc SYM - >; - }; - - NMT { - display-name = "DEF-NMT"; - bindings = < - &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P - &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT - &hrml GLOBE Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SEMI - &lc NAV &kp RSHFT &kp SPACE &lc SYM + &lc NAV &hp RSHFT SPACE &kp SPACE &ls SYM >; }; NUM { display-name = "NUM"; bindings = < - &kp COLON &kp N7 &kp N8 &kp N9 &kp BSPC &trans &trans &trans &trans &trans - &kp N0 &kp N4 &kp N5 &kp N6 &kp KP_ENTER &trans &trans &trans &trans &trans - &kp COMMA &kp N1 &kp N2 &kp N3 &kp KP_DOT &trans &trans &trans &trans &trans - &mo NAV &sl SYM &trans &trans + &kp COLON &kp N7 &kp N8 &kp N9 &kp BSPC &trans &trans &trans &trans &trans + &kp N0 &kp N4 &kp N5 &kp N6 &kp KP_ENTER &trans &trans &trans &trans &trans + &kp COMMA &kp N1 &kp N2 &kp N3 &kp KP_DOT &trans &trans &trans &trans &trans + &hp NAV N0 &sl SYM &trans &trans >; }; @@ -295,17 +289,5 @@ >; }; - extra1 { - status = "reserved"; - }; - - extra2 { - status = "reserved"; - }; - - extra3 { - status = "reserved"; - }; - }; }; \ No newline at end of file