Skip to content

Commit ff93052

Browse files
committed
Initial User Config.
0 parents  commit ff93052

File tree

7 files changed

+109
-0
lines changed

7 files changed

+109
-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@main

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: corne_left
24+
- board: nice_nano_v2
25+
shield: corne_right

config/corne.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Uncomment the following lines to enable the Corne RGB Underglow
2+
# CONFIG_ZMK_RGB_UNDERGLOW=y
3+
# CONFIG_WS2812_STRIP=y
4+
5+
# Uncomment the following line to enable the Corne OLED Display
6+
# CONFIG_ZMK_DISPLAY=y

config/corne.keymap

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
keymap {
13+
compatible = "zmk,keymap";
14+
15+
default_layer {
16+
// -----------------------------------------------------------------------------------------
17+
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BSPC |
18+
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
19+
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | ESC |
20+
// | GUI | LWR | SPC | | ENT | RSE | ALT |
21+
bindings = <
22+
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
23+
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
24+
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
25+
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
26+
>;
27+
};
28+
lower_layer {
29+
// -----------------------------------------------------------------------------------------
30+
// | TAB | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BSPC |
31+
// | BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | LFT | DWN | UP | RGT | | |
32+
// | SHFT | | | | | | | | | | | | |
33+
// | GUI | | SPC | | ENT | | ALT |
34+
bindings = <
35+
&kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
36+
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
37+
&kp LSHFT &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
38+
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
39+
>;
40+
};
41+
42+
raise_layer {
43+
// -----------------------------------------------------------------------------------------
44+
// | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BSPC |
45+
// | CTRL | | | | | | | - | = | [ | ] | \ | ` |
46+
// | SHFT | | | | | | | _ | + | { | } | "|" | ~ |
47+
// | GUI | | SPC | | ENT | | ALT |
48+
bindings = <
49+
&kp TAB &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp BSPC
50+
&kp LCTRL &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
51+
&kp LSHFT &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
52+
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
53+
>;
54+
};
55+
};
56+
};

config/west.yml

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