diff options
-rw-r--r-- | config/cradio.keymap | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/cradio.keymap b/config/cradio.keymap index b16d636..e20c3aa 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap | |||
@@ -30,6 +30,33 @@ | |||
30 | quick_tap_ms = <75>; | 30 | quick_tap_ms = <75>; |
31 | }; | 31 | }; |
32 | 32 | ||
33 | #define ZMK_HELPER_STRINGIFY(x) #x | ||
34 | |||
35 | /* ZMK_BEHAVIOR */ | ||
36 | |||
37 | #define ZMK_BEHAVIOR_CORE_caps_word compatible = "zmk,behavior-caps-word"; #binding-cells = <0> | ||
38 | #define ZMK_BEHAVIOR_CORE_dynamic_macro compatible = "zmk,behavior-dynamic-macro"; #binding-cells = <1> | ||
39 | #define ZMK_BEHAVIOR_CORE_hold_tap compatible = "zmk,behavior-hold-tap"; #binding-cells = <2> | ||
40 | #define ZMK_BEHAVIOR_CORE_key_repeat compatible = "zmk,behavior-key-repeat"; #binding-cells = <0> | ||
41 | #define ZMK_BEHAVIOR_CORE_macro compatible = "zmk,behavior-macro"; #binding-cells = <0> | ||
42 | #define ZMK_BEHAVIOR_CORE_macro_one_param compatible = "zmk,behavior-macro-one-param"; #binding-cells = <1> | ||
43 | #define ZMK_BEHAVIOR_CORE_macro_two_param compatible = "zmk,behavior-macro-two-param"; #binding-cells = <2> | ||
44 | #define ZMK_BEHAVIOR_CORE_mod_morph compatible = "zmk,behavior-mod-morph"; #binding-cells = <0> | ||
45 | #define ZMK_BEHAVIOR_CORE_sticky_key compatible = "zmk,behavior-sticky-key"; #binding-cells = <1> | ||
46 | #define ZMK_BEHAVIOR_CORE_tap_dance compatible = "zmk,behavior-tap-dance"; #binding-cells = <0> | ||
47 | #define ZMK_BEHAVIOR_CORE_tri_state compatible = "zmk,behavior-tri-state"; #binding-cells = <0> | ||
48 | |||
49 | #define ZMK_BEHAVIOR(name, type, ...) \ | ||
50 | / { \ | ||
51 | behaviors { \ | ||
52 | name: name { \ | ||
53 | label = ZMK_HELPER_STRINGIFY(ZB_ ## name); \ | ||
54 | ZMK_BEHAVIOR_CORE_ ## type; \ | ||
55 | __VA_ARGS__ \ | ||
56 | }; \ | ||
57 | }; \ | ||
58 | }; | ||
59 | |||
33 | #define KEYS_L 0 1 2 3 4 10 11 12 13 14 20 21 22 23 24 | 60 | #define KEYS_L 0 1 2 3 4 10 11 12 13 14 20 21 22 23 24 |
34 | #define KEYS_R 5 6 7 8 9 15 16 17 18 19 25 26 27 28 29 | 61 | #define KEYS_R 5 6 7 8 9 15 16 17 18 19 25 26 27 28 29 |
35 | #define THUMBS 30 31 32 33 | 62 | #define THUMBS 30 31 32 33 |