diff options
author | Emile <git@emile.space> | 2023-02-18 00:51:41 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2023-02-18 00:51:41 +0100 |
commit | d20374dc85308df64087ede89b33c54818fc117f (patch) | |
tree | 991ee1b395373a44600410b3a7f05532b7165ed6 /config | |
parent | 8365897a5689c737ab197cb39544d9bb1e676c0a (diff) |
test setup for autoshift
Diffstat (limited to 'config')
-rw-r--r-- | config/cradio.keymap | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/config/cradio.keymap b/config/cradio.keymap index 587bc7a..82c706c 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -5,20 +5,17 @@ #include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/bt.h> -// Home row mods macro -#define HRML(k1,k2,k3,k4) &ht LSHFT k1 &ht LALT k2 &ht LCTRL k3 &ht LGUI k4 -#define HRMR(k1,k2,k3,k4) &ht RGUI k1 &ht RCTRL k2 &ht RALT k3 &ht RSHFT k4 +#define AS(keycode) &as LS(keycode) keycode // Autoshift Macro / { behaviors { - ht: hold_tap { - label = "hold_tap"; + as: auto_shift { compatible = "zmk,behavior-hold-tap"; + label = "AUTO_SHIFT"; #binding-cells = <2>; + tapping_term_ms = <135>; + quick_tap_ms = <0>; flavor = "tap-preferred"; - tapping-term-ms = <220>; - quick-tap-ms = <150>; - global-quick-tap; bindings = <&kp>, <&kp>; }; }; @@ -36,15 +33,16 @@ default_layer { bindings = < //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮ - //│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │ - &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P + //│ Q │ W │ F │ P │ B │ │ J │ L │ U │ Y │ ; │ + AS(Q) AS(W) AS(E) AS(R) AS(T) &kp Y &kp U &kp I &kp O &kp SEMI //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ - //│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ' " │ + //│ A │ R │ S │ T │ G │ │ M │ N │ E │ I │ O │ HRML(A, S, D, F) &kp G &kp H HRMR(J, K, L, SQT) //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ - //│ Z │ X │ C │ V │ B │ │ N │ M │ , < │ . > │ / ? │ + //│ Z │ X │ C │ D │ V │ │ K │ H │ , < │ . > │ / ? │ &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH //╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯ + // │ ESC │ SPC │ │ BSPC │ ENT │ < 2 TAB &kp ENTER &kp SPACE < 1 BSPC // ╰──────────┴──────────╯ ╰──────────┴──────────╯ >; |