summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvin <git@vineetk.net>2025-03-15 05:09:15 -0400
committervin <git@vineetk.net>2025-03-15 05:09:15 -0400
commit725b9daa5cc3a0405ca7ddc6b577bd50eb645553 (patch)
tree54f961ec19da366b19d150e09ee567c35b181ceb
parent3a4410509bd64e5a4439d932e8d3a289a604526d (diff)
add cradio/sweep config
-rw-r--r--config/cradio.conf3
-rw-r--r--config/cradio.keymap71
2 files changed, 74 insertions, 0 deletions
diff --git a/config/cradio.conf b/config/cradio.conf
new file mode 100644
index 0000000..0575c92
--- /dev/null
+++ b/config/cradio.conf
@@ -0,0 +1,3 @@
1CONFIG_ZMK_KEYBOARD_NAME="uhhh"
2CONFIG_ZMK_SLEEP=y
3CONFIG_ZMK_BLE=y
diff --git a/config/cradio.keymap b/config/cradio.keymap
new file mode 100644
index 0000000..8743a1f
--- /dev/null
+++ b/config/cradio.keymap
@@ -0,0 +1,71 @@
1// Copyright (c) 2022 The ZMK Contributors
2// SPDX-License-Identifier: MIT
3
4#include <behaviors.dtsi>
5#include <dt-bindings/zmk/keys.h>
6#include <dt-bindings/zmk/bt.h>
7
8// Home row mods macro
9#define HRML(k1,k2,k3,k4) &ht LSHFT k1 &ht LALT k2 &ht LCTRL k3 &ht LGUI k4
10#define HRMR(k1,k2,k3,k4) &ht RGUI k1 &ht RCTRL k2 &ht RALT k3 &ht RSHFT k4
11
12/ {
13 behaviors {
14 ht: hold_tap {
15 compatible = "zmk,behavior-hold-tap";
16 #binding-cells = <2>;
17 flavor = "tap-preferred";
18 tapping-term-ms = <220>;
19 quick-tap-ms = <150>;
20 require-prior-idle-ms = <100>;
21 bindings = <&kp>, <&kp>;
22 };
23 };
24
25 conditional_layers {
26 compatible = "zmk,conditional-layers";
27 tri_layer {
28 if-layers = <1 2>;
29 then-layer = <3>;
30 };
31 };
32
33 keymap {
34 compatible = "zmk,keymap";
35 default_layer {
36 bindings = <
37 &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
38 HRML(A, S, D, F) &kp G &kp H HRMR(J, K, L, SQT)
39 &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
40 &lt 2 TAB &kp ENTER &kp SPACE &lt 1 BSPC
41 >;
42 };
43
44 right_layer {
45 bindings = <
46 &kp INS &kp N1 &kp N2 &kp N3 &trans &kp HOME &kp PG_DN &kp PG_UP &kp END &kp COLON
47 &kp DEL &kp N4 &kp N5 &kp N6 &trans &kp LARW &kp DARW &kp UARW &kp RARW &kp SEMI
48 &caps_word &kp N7 &kp N8 &kp N9 &kp N0 &trans &trans &trans &trans &trans
49 &trans &kp ESC &trans &trans
50 >;
51 };
52
53 left_layer {
54 bindings = <
55 &trans &kp LBKT &kp LBRC &kp RBRC &trans &kp CARET &kp LPAR &kp RPAR &kp RBKT &kp TILDE
56 &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp ASTRK &kp MINUS &kp EQUAL &kp BSLH &kp GRAVE
57 &trans &trans &trans &trans &trans &kp AMPS &kp UNDER &kp PLUS &kp PIPE &trans
58 &trans &trans &trans &trans
59 >;
60 };
61
62 tri_layer {
63 bindings = <
64 &sys_reset &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &sys_reset
65 &bootloader &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &bootloader
66 &trans &trans &trans &bt BT_CLR &bt BT_SEL 2 &trans &trans &trans &trans &trans
67 &trans &trans &trans &trans
68 >;
69 };
70 };
71};