From b500c67a58948fa4b4892b804ed84dfef51dd23a Mon Sep 17 00:00:00 2001 From: ldebritto Date: Tue, 21 Jan 2025 19:14:01 -0300 Subject: [PATCH] Commented code --- config/cradio.keymap | 54 +++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/config/cradio.keymap b/config/cradio.keymap index 341e63f..80afb56 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -4,6 +4,8 @@ #include // requires auto-layer module (https://github.com/urob/zmk-auto-layer) #include "mouse.dtsi" +// Layer defines + #define DEF 0 #define MOU 1 #define NUM 2 @@ -16,6 +18,8 @@ #define HYPER LG(LS(LC(LALT))) // HYPER key for another shortcut layer +// Customizing behaviors + &sk { quick-release; // Avoids "THis" problem (double capitalization) release-after-ms = <86400000>;// Default is 1000 ms, raised to 1 day to emulate Callum's behavior that requires canceling on layer key. @@ -25,7 +29,7 @@ &mt { flavor = "balanced"; }; -&num_word { +&num_word { // requires auto-layer module (https://github.com/urob/zmk-auto-layer) continue-list = ; ignore-modifiers; }; @@ -34,7 +38,9 @@ combos { compatible = "zmk,combos"; - left_hand_esc { + // Making the keyboard more accessible for one-handed use + + left_hand_esc { // Left hand is great to allow mouse usage simultaneously bindings = <&kp ESCAPE>; key-positions = <1 2 3>; require-prior-idle-ms = <200>; @@ -46,18 +52,20 @@ require-prior-idle-ms = <200>; }; - right_hand_enter { - bindings = <&hrmr RA(LS(RGUI)) ENTER>; - key-positions = <16 17 18>; - require-prior-idle-ms = <200>; - }; - left_hand_backspace { bindings = <&hrml LA(LGUI) BSPC>; key-positions = <11 13>; require-prior-idle-ms = <200>; }; + right_hand_enter { // Feels more natural to press ENTER with the right hand + bindings = <&hrmr RA(LS(RGUI)) ENTER>; + key-positions = <16 17 18>; + require-prior-idle-ms = <200>; + }; + + // Layer toggles and other gimmickry + toggle_nav_for_extended_edits { key-positions = <30 31>; bindings = <&tog NAV>; @@ -67,7 +75,7 @@ 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 + bindings = <&sl SYM>; // usually just one symbol is used, so a &sl is better than &tog require-prior-idle-ms = <200>; layers = ; }; @@ -97,12 +105,14 @@ require-prior-idle-ms = <200>; }; - toggle_aoe { + toggle_aoe_gaming_layer { key-positions = <20 21 22>; bindings = <&tog AOE>; layers =