diff options
-rw-r--r-- | .github/workflows/build.yml | 5 | ||||
-rw-r--r-- | build.yaml | 19 | ||||
-rw-r--r-- | config/cradio.conf | 0 | ||||
-rw-r--r-- | config/cradio.keymap | 102 | ||||
-rw-r--r-- | config/west.yml | 11 |
5 files changed, 137 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d74fb89 --- /dev/null +++ b/.github/workflows/build.yml | |||
@@ -0,0 +1,5 @@ | |||
1 | on: [push, pull_request, workflow_dispatch] | ||
2 | |||
3 | jobs: | ||
4 | build: | ||
5 | uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main | ||
diff --git a/build.yaml b/build.yaml new file mode 100644 index 0000000..cc91576 --- /dev/null +++ b/build.yaml | |||
@@ -0,0 +1,19 @@ | |||
1 | # This file generates the GitHub Actions matrix | ||
2 | # For simple board + shield combinations, add them | ||
3 | # to the top level board and shield arrays, for more | ||
4 | # control, add individual board + shield combinations to | ||
5 | # the `include` property, e.g: | ||
6 | # | ||
7 | # board: [ "nice_nano_v2" ] | ||
8 | # shield: [ "corne_left", "corne_right" ] | ||
9 | # include: | ||
10 | # - board: bdn9_rev2 | ||
11 | # - board: nice_nano_v2 | ||
12 | # shield: reviung41 | ||
13 | # | ||
14 | --- | ||
15 | include: | ||
16 | - board: nice_nano_v2 | ||
17 | shield: cradio_left | ||
18 | - board: nice_nano_v2 | ||
19 | shield: cradio_right | ||
diff --git a/config/cradio.conf b/config/cradio.conf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/config/cradio.conf | |||
diff --git a/config/cradio.keymap b/config/cradio.keymap new file mode 100644 index 0000000..ec5e0e7 --- /dev/null +++ b/config/cradio.keymap | |||
@@ -0,0 +1,102 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2020 The ZMK Contributors | ||
3 | * | ||
4 | * SPDX-License-Identifier: MIT | ||
5 | */ | ||
6 | |||
7 | #include <behaviors.dtsi> | ||
8 | #include <dt-bindings/zmk/keys.h> | ||
9 | #include <dt-bindings/zmk/bt.h> | ||
10 | |||
11 | |||
12 | &mt { | ||
13 | // flavor = "tap-preferred"; | ||
14 | // tapping_term_ms = <200>; | ||
15 | }; | ||
16 | |||
17 | / { | ||
18 | |||
19 | combos { | ||
20 | compatible = "zmk,combos"; | ||
21 | combo_esc { | ||
22 | timeout-ms = <50>; | ||
23 | key-positions = <0 1>; | ||
24 | bindings = <&kp ESC>; | ||
25 | }; | ||
26 | |||
27 | combo_tab { | ||
28 | timeout-ms = <50>; | ||
29 | key-positions = <10 11>; | ||
30 | bindings = <&kp TAB>; | ||
31 | }; | ||
32 | |||
33 | combo_ralt { | ||
34 | timeout-ms = <50>; | ||
35 | key-positions = <17 16>; | ||
36 | bindings = <&kp RALT>; | ||
37 | }; | ||
38 | |||
39 | combo_lalt { | ||
40 | timeout-ms = <50>; | ||
41 | key-positions = <11 12>; | ||
42 | bindings = <&kp LALT>; | ||
43 | }; | ||
44 | |||
45 | combo_lgui { | ||
46 | timeout-ms = <50>; | ||
47 | key-positions = <12 13>; | ||
48 | bindings = <&kp LGUI>; | ||
49 | }; | ||
50 | |||
51 | |||
52 | combo_rgui { | ||
53 | timeout-ms = <50>; | ||
54 | key-positions = <17 18>; | ||
55 | bindings = <&kp RGUI>; | ||
56 | }; | ||
57 | |||
58 | |||
59 | |||
60 | }; | ||
61 | |||
62 | keymap { | ||
63 | compatible = "zmk,keymap"; | ||
64 | |||
65 | default_layer { | ||
66 | bindings = < | ||
67 | &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P | ||
68 | &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp QUOT | ||
69 | &mt LSFT Z &kp X &kp C &kp V &kp B &kp N &kp M &kp CMMA &kp DOT &mt LSFT RET | ||
70 | &mo 1 &kp LCTL &kp SPC &mo 2 | ||
71 | >; | ||
72 | }; | ||
73 | |||
74 | left_layer { | ||
75 | bindings = < | ||
76 | &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &kp NUM_6 &kp NUM_7 &kp NUM_8 &kp NUM_9 &kp NUM_0 | ||
77 | &kp TAB &kp LC(S) &kp DQT &kp PIPE2 &kp HASH &kp MINUS &kp EQL &kp LBKT &kp RBKT &kp DEL | ||
78 | &kp ESC &kp TILDE &kp NON_US_BSLH &kp NON_US_HASH &kp TILDE2 &kp MINUS &kp GRAVE &kp LBKT &kp RBKT &kp DEL | ||
79 | &mo 1 &kp LGUI &kp RGUI &mo 2 | ||
80 | >; | ||
81 | }; | ||
82 | |||
83 | right_layer { | ||
84 | bindings = < | ||
85 | &kp BANG &kp ATSN &kp HASH &kp DLLR &kp PRCT &kp CRRT &kp AMPS &kp KMLT &kp LPRN &kp RPRN | ||
86 | &kp HASH &kp QMARK &kp FSLH &kp COLN &kp SCLN &kp MINUS &kp KP_EQUAL &kp LBRC &kp RBRC &kp BKSP | ||
87 | &kp LSFT &kp KPLS &kp LBKT &kp RBKT &kp BSLH &kp UNDER &kp LEFT &kp DOWN &kp UP &kp RIGHT | ||
88 | &mo 3 &kp LCTL &kp SPC &mo 2 | ||
89 | >; | ||
90 | }; | ||
91 | |||
92 | tri_layer { | ||
93 | bindings = < | ||
94 | &kp NUM_1 &kp NUM_2 &kp NUM_3 &kp NUM_4 &kp NUM_5 &trans &trans &trans &trans &trans | ||
95 | &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &kp PG_UP &kp K_VOL_UP &kp K_MUTE &trans | ||
96 | &bt BT_CLR &bt BT_NXT &bt BT_PRV &kp F6 &kp F7 &trans &kp PG_DN &kp K_VOL_DN &trans &trans | ||
97 | &trans &trans &trans &trans | ||
98 | >; | ||
99 | }; | ||
100 | |||
101 | }; | ||
102 | }; | ||
diff --git a/config/west.yml b/config/west.yml new file mode 100644 index 0000000..379d291 --- /dev/null +++ b/config/west.yml | |||
@@ -0,0 +1,11 @@ | |||
1 | manifest: | ||
2 | remotes: | ||
3 | - name: zmkfirmware | ||
4 | url-base: https://github.com/zmkfirmware | ||
5 | projects: | ||
6 | - name: zmk | ||
7 | remote: zmkfirmware | ||
8 | revision: main | ||
9 | import: app/west.yml | ||
10 | self: | ||
11 | path: config | ||