From ad7cd3b6a2c38533764f62ffe767530703042ff5 Mon Sep 17 00:00:00 2001 From: ldebritto Date: Tue, 10 Dec 2024 16:57:46 -0300 Subject: [PATCH] Getting a leaner keymap --- build.yaml | 2 +- config/cradio.conf | 2 +- config/cradio.keymap | 36 ++++++------------------------------ 3 files changed, 8 insertions(+), 32 deletions(-) diff --git a/build.yaml b/build.yaml index f586f8b..d9aeb30 100644 --- a/build.yaml +++ b/build.yaml @@ -20,7 +20,7 @@ include: - board: nice_nano_v2 shield: cradio_left - snippet: studio-rpc-usb-uart + # snippet: studio-rpc-usb-uart - board: nice_nano_v2 shield: cradio_right - board: nice_nano_v2 diff --git a/config/cradio.conf b/config/cradio.conf index a7dae8b..f7228d1 100644 --- a/config/cradio.conf +++ b/config/cradio.conf @@ -12,4 +12,4 @@ CONFIG_BT_CTLR_TX_PWR_PLUS_8=y CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y # ZMK Studio -CONFIG_ZMK_STUDIO=y \ No newline at end of file +# CONFIG_ZMK_STUDIO=y \ No newline at end of file diff --git a/config/cradio.keymap b/config/cradio.keymap index f08e310..fd35a8f 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -9,7 +9,7 @@ #define SYM 3 #define FUN 4 -#define HYPER LG(LS(LC(LALT))) +#define HYPER LG(LS(LC(LALT))) // HYPER key for another shortcut layer &sk { quick-release; // Avoids "THis" problem (double capitalization) @@ -21,13 +21,7 @@ &mt { flavor = "balanced"; }; &num_word { - continue-list = < - COLON KP_DOT COMMA - PLUS MINUS ASTRK SLASH EQUAL - AT DOLLAR - BSPC DEL - TAB KP_ENTER - >; + continue-list = ; ignore-modifiers; }; @@ -111,12 +105,6 @@ layers = ; }; - sys_zmk_studio_unlock { - key-positions = <26 27 28>; - bindings = <&studio_unlock>; - layers = ; - }; - }; behaviors { @@ -158,18 +146,6 @@ 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>; @@ -252,10 +228,10 @@ 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 - &hp NAV N0 &sl SYM &trans &trans + &kp COLON &kp N7 &kp N8 &kp N9 &kp BSPC &none &none &none &none &none + &kp N0 &kp N4 &kp N5 &kp N6 &kp KP_ENTER &sk HYPER &sk RCMD &sk LSHFT &sk RALT &kp RCTRL + &kp COMMA &kp N1 &kp N2 &kp N3 &kp KP_DOT &none &none &none &none &none + &hp NAV N0 &sl SYM &trans &trans >; };