Skip to content

Commit 3dc5cc3

Browse files
committed
Initial User Config.
0 parents  commit 3dc5cc3

File tree

7 files changed

+155
-0
lines changed

7 files changed

+155
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Build ZMK firmware
2+
on: [push, pull_request, workflow_dispatch]
3+
4+
jobs:
5+
build:
6+
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@v0.3

boards/shields/.gitkeep

Whitespace-only changes.

build.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This file generates the GitHub Actions matrix.
2+
# For simple board + shield combinations, add them to the top level board and
3+
# shield arrays, for more control, add individual board + shield combinations
4+
# to the `include` property. You can also use the `cmake-args` property to
5+
# pass flags to the build command, `snippet` to add a Zephyr snippet, and
6+
# `artifact-name` to assign a name to distinguish build outputs from each other:
7+
#
8+
# board: [ "nice_nano_v2" ]
9+
# shield: [ "corne_left", "corne_right" ]
10+
# include:
11+
# - board: bdn9_rev2
12+
# - board: nice_nano_v2
13+
# shield: reviung41
14+
# - board: nice_nano_v2
15+
# shield: corne_left
16+
# snippet: studio-rpc-usb-uart
17+
# cmake-args: -DCONFIG_ZMK_STUDIO=y
18+
# artifact-name: corne_left_with_studio
19+
#
20+
---
21+
include:
22+
- board: nice_nano_v2
23+
shield: cradio_left
24+
- board: nice_nano_v2
25+
shield: cradio_right

config/cradio.conf

Whitespace-only changes.

config/cradio.keymap

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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+
display-name = "Default Layer";
37+
bindings = <
38+
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
39+
//│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │
40+
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
41+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
42+
//│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ' " │
43+
HRML(A, S, D, F) &kp G &kp H HRMR(J, K, L, SQT)
44+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
45+
//│ Z │ X │ C │ V │ B │ │ N │ M │ , < │ . > │ / ? │
46+
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
47+
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
48+
&lt 2 TAB &kp ENTER &kp SPACE &lt 1 BSPC
49+
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
50+
>;
51+
};
52+
53+
right_layer {
54+
display-name = "Right Layer";
55+
bindings = <
56+
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
57+
//│ INSERT │ 1 │ 2 │ 3 │ │ │ HOME │ PAGE DN │ PAGE UP │ END │ : │
58+
&kp INS &kp N1 &kp N2 &kp N3 &trans &kp HOME &kp PG_DN &kp PG_UP &kp END &kp COLON
59+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
60+
//│ DELETE │ 4 │ 5 │ 6 │ │ │ LEFT │ DOWN │ UP │ RIGHT │ ; │
61+
&kp DEL &kp N4 &kp N5 &kp N6 &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp SEMI
62+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
63+
//│ CAPS │ 7 │ 8 │ 9 │ 0 │ │ │ │ │ │ │
64+
&caps_word &kp N7 &kp N8 &kp N9 &kp N0 &trans &trans &trans &trans &trans
65+
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
66+
&trans &kp ESC &trans &trans
67+
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
68+
>;
69+
};
70+
71+
left_layer {
72+
display-name = "Left Layer";
73+
bindings = <
74+
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
75+
//│ │ [ │ { │ } │ │ │ ^ │ ( │ ) │ ] │ ~ │
76+
&trans &kp LBKT &kp LBRC &kp RBRC &trans &kp CARET &kp LPAR &kp RPAR &kp RBKT &kp TILDE
77+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
78+
//│ ! │ @ │ # │ $ │ % │ │ * │ - │ = │ \ │ ` │
79+
&kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp ASTRK &kp MINUS &kp EQUAL &kp BSLH &kp GRAVE
80+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
81+
//│ │ │ │ │ │ │ & │ _ │ + │ │ │ │
82+
&trans &trans &trans &trans &trans &kp AMPS &kp UNDER &kp PLUS &kp PIPE &trans
83+
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
84+
&trans &trans &trans &trans
85+
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
86+
>;
87+
};
88+
89+
tri_layer {
90+
display-name = "Tri Layer";
91+
bindings = <
92+
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
93+
//│ RESET │ │ │ │PROFILE 0 │ │ │ │ │ │ RESET │
94+
&sys_reset &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &sys_reset
95+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
96+
//│BOOTLOADER│ │ │ │PROFILE 1 │ │ │ │ │ │BOOTLOADER│
97+
&bootloader &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &bootloader
98+
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
99+
//│ │ │ │ CLEAR BT │PROFILE 2 │ │ │ │ │ │ │
100+
&trans &trans &trans &bt BT_CLR &bt BT_SEL 2 &trans &trans &trans &trans &trans
101+
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
102+
&trans &trans &trans &trans
103+
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
104+
>;
105+
};
106+
};
107+
};

config/west.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
manifest:
2+
defaults:
3+
revision: v0.3
4+
remotes:
5+
- name: zmkfirmware
6+
url-base: https://github.com/zmkfirmware
7+
# Additional modules containing boards/shields/custom code can be listed here as well
8+
# See https://docs.zephyrproject.org/3.2.0/develop/west/manifest.html#projects
9+
projects:
10+
- name: zmk
11+
remote: zmkfirmware
12+
import: app/west.yml
13+
self:
14+
path: config

zephyr/module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build:
2+
settings:
3+
board_root: .

0 commit comments

Comments
 (0)