Compare commits
90 Commits
experiment
...
master
Author | SHA1 | Date | |
---|---|---|---|
698641a011 | |||
d63021ee27 | |||
f006a1180c | |||
3409345409 | |||
1932db7ab7 | |||
314bf1345d | |||
ef9d647efc | |||
eb877446cf | |||
d3c861a069 | |||
ff1f770ec0 | |||
e6e407b0ae | |||
c7e21c54b7 | |||
5e9cf391c5 | |||
f0d9fe52e2 | |||
ef20c44a71 | |||
d690c3f6a7 | |||
1d297244c9 | |||
d07582b181 | |||
8485c34856 | |||
b6c58277a1 | |||
7c6e41f899 | |||
e05bc8e600 | |||
389502e317 | |||
1589983a1e | |||
e7f025a816 | |||
a2e1f7b2ef | |||
0177f28427 | |||
85a6110662 | |||
00a6aa0482 | |||
4b3d523f8d | |||
f7dc7174e6 | |||
71d0d5b92f | |||
6693b70405 | |||
2b39c6fec7 | |||
64fa7e3bcb | |||
2cd9d3031f | |||
d6afe8ca16 | |||
dbc707eca2 | |||
4c1391fd18 | |||
e17b5743ec | |||
b981cbcf1e | |||
28757d7b26 | |||
0e11f06ca7 | |||
801353c249 | |||
fb2124d0ed | |||
afa8c476bb | |||
e2f294d402 | |||
43da84896d | |||
109326adc6 | |||
783e6bf234 | |||
c521a712fc | |||
f956e1d053 | |||
9f17a83561 | |||
600c3d1fed | |||
990395c44f | |||
812284df38 | |||
8062f0ac6c | |||
fc3b06d87f | |||
dcf545b708 | |||
65e05d5015 | |||
750ea8ae94 | |||
734f8d9afd | |||
82eaf0cc1c | |||
80708ca955 | |||
e70264c449 | |||
67540297f7 | |||
89a3ea2037 | |||
5ee21eddc2 | |||
ed1fe675be | |||
c4d86dd4c3 | |||
2a0acd464a | |||
279cda4b34 | |||
f2c206409c | |||
07fdcf7360 | |||
15cc4a2a37 | |||
2c986df5a7 | |||
00140b3717 | |||
60555f0453 | |||
0dee4e0958 | |||
bf2f9fa012 | |||
307c589496 | |||
17737eb285 | |||
955249003c | |||
d1bf25a757 | |||
2e3e23f822 | |||
c47784422b | |||
8132acba5e | |||
0a41baf5df | |||
b4842aaa16 | |||
7d7f6cd0b4 |
93
.gitea/workflows/build.yml
Normal file
93
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: zmkfirmware/zmk-build-arm:stable
|
||||||
|
name: Build
|
||||||
|
steps:
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
apt-get update;
|
||||||
|
apt-get install --yes --no-install-recommends \
|
||||||
|
nodejs \
|
||||||
|
zstd \
|
||||||
|
zip
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Hash west modules
|
||||||
|
id: hash-west
|
||||||
|
run: |
|
||||||
|
FILE_PATH=zephyr/west.yml
|
||||||
|
FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort)
|
||||||
|
HASH="$(echo -n $FILES | sha256sum | head -c 64)"
|
||||||
|
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "computed hash: $HASH"
|
||||||
|
|
||||||
|
- name: Cache west modules
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-zephyr-modules
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
modules/
|
||||||
|
tools/
|
||||||
|
zephyr/
|
||||||
|
bootloader/
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
${{ runner.os }}-
|
||||||
|
timeout-minutes: 5
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: West Init
|
||||||
|
run: west init -l config
|
||||||
|
|
||||||
|
- name: West Update
|
||||||
|
run: west update
|
||||||
|
|
||||||
|
- name: West Zephyr export
|
||||||
|
run: west zephyr-export
|
||||||
|
|
||||||
|
- name: West Build (Corne Left)
|
||||||
|
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||||
|
|
||||||
|
- name: Corne Left Kconfig file
|
||||||
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||||
|
|
||||||
|
- name: Rename zmk.uf2
|
||||||
|
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
|
||||||
|
|
||||||
|
- name: West Build (Corne Right)
|
||||||
|
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||||
|
|
||||||
|
- name: Corne Right Kconfig file
|
||||||
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||||
|
|
||||||
|
- name: Rename zmk.uf2
|
||||||
|
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
|
||||||
|
|
||||||
|
- name: Zip Artifacts
|
||||||
|
run: zip firmware.zip corne_left_nice_nano_v2.uf2 corne_right_nice_nano_v2.uf2
|
||||||
|
|
||||||
|
- name: Hash west modules
|
||||||
|
id: hash-west
|
||||||
|
run: |
|
||||||
|
FILE_PATH=zephyr/west.yml
|
||||||
|
FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort)
|
||||||
|
HASH="$(echo -n $FILES | sha256sum | head -c 64)"
|
||||||
|
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "computed hash: $HASH"
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
path: firmware.zip
|
||||||
|
name: firmware.zip
|
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -9,8 +9,12 @@ jobs:
|
|||||||
image: zmkfirmware/zmk-build-arm:stable
|
image: zmkfirmware/zmk-build-arm:stable
|
||||||
name: Build
|
name: Build
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: apt update; apt install -y nodejs ssh
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
env:
|
env:
|
||||||
@ -33,6 +37,7 @@ jobs:
|
|||||||
run: west update
|
run: west update
|
||||||
- name: West Zephyr export
|
- name: West Zephyr export
|
||||||
run: west zephyr-export
|
run: west zephyr-export
|
||||||
|
|
||||||
- name: West Build (Corne Left)
|
- name: West Build (Corne Left)
|
||||||
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||||
- name: Corne Left Kconfig file
|
- name: Corne Left Kconfig file
|
||||||
@ -40,19 +45,27 @@ jobs:
|
|||||||
- name: Rename zmk.uf2
|
- name: Rename zmk.uf2
|
||||||
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
|
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
|
||||||
- name: Archive (Corne Left)
|
- name: Archive (Corne Left)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: firmware
|
name: firmware
|
||||||
path: corne_left_nice_nano_v2.uf2
|
path: corne_left_nice_nano_v2.uf2
|
||||||
|
|
||||||
- name: West Build (Corne Right)
|
- name: West Build (Corne Right)
|
||||||
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||||
|
|
||||||
- name: Corne Right Kconfig file
|
- name: Corne Right Kconfig file
|
||||||
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
|
||||||
- name: Rename zmk.uf2
|
- name: Rename zmk.uf2
|
||||||
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
|
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
|
||||||
- name: Archive (Corne Right)
|
- name: Archive (Corne Right)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: firmware
|
name: firmware
|
||||||
path: corne_right_nice_nano_v2.uf2
|
path: corne_right_nice_nano_v2.uf2
|
||||||
|
|
||||||
|
- name: Upload artifacts as release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
corne_left_nice_nano_v2.uf2
|
||||||
|
corne_right_nice_nano_v2.uf2
|
||||||
|
@ -9,4 +9,6 @@
|
|||||||
CONFIG_ZMK_SLEEP=y
|
CONFIG_ZMK_SLEEP=y
|
||||||
CONFIG_ZMK_IDLE_TIMEOUT=30000
|
CONFIG_ZMK_IDLE_TIMEOUT=30000
|
||||||
# Sleep timeout to 15 minutes
|
# Sleep timeout to 15 minutes
|
||||||
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
|
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
|
||||||
|
|
||||||
|
CONFIG_ZMK_KEYBOARD_NAME="Daimon Scriptor"
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include <dt-bindings/zmk/outputs.h>
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
|
|
||||||
&sl {
|
&sl {
|
||||||
release-after-ms = <2000>;
|
release-after-ms = <250>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&sk {
|
&sk {
|
||||||
@ -24,37 +24,28 @@
|
|||||||
default_layer {
|
default_layer {
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
|
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
|
||||||
&sk CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
&kp LSHFT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
||||||
&sk LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo 1
|
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo 1
|
||||||
&kp LGUI &sk LCTRL &kp SPACE &kp LC(BSPC) &sl 2 &sk LALT
|
&kp LGUI &sl 2 &kp SPACE &kp LC(BSPC) &kp CAPS &kp LALT
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
adjust_layer {
|
adjust_layer {
|
||||||
bindings = <
|
bindings = <
|
||||||
&kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP &kp C_PREV &kp C_NEXT &kp C_PP &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR
|
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &none &none &none &none &kp C_PP &kp C_VOL_UP
|
||||||
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &out OUT_BLE &out OUT_USB &none &none &none &none
|
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &out OUT_BLE &out OUT_USB &none &none &none &kp C_VOL_DN
|
||||||
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &tog 3 &none &none &none &none &kp PAUSE_BREAK
|
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &none &none &none &none &kp C_MUTE &kp PAUSE_BREAK
|
||||||
&trans &trans &none &none &trans &none
|
&trans &trans &none &none &trans &none
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
neo_layer_4 {
|
neo_layer_4 {
|
||||||
bindings = <
|
bindings = <
|
||||||
&none &kp PG_UP &kp BSPC &kp UP &kp DEL &kp PG_DN &none &kp N7 &kp N8 &kp N9 &none &none
|
&trans &kp PG_UP &kp BSPC &kp UP &kp DEL &kp PG_DN &none &kp N7 &kp N8 &kp N9 &none &none
|
||||||
&none &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END &none &kp N4 &kp N5 &kp N6 &kp N0 &none
|
&trans &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END &none &kp N4 &kp N5 &kp N6 &kp N0 &none
|
||||||
&trans &kp ESC &kp TAB &kp INSERT &kp ENTER &kp K_UNDO &kp N0 &kp N1 &kp N2 &kp N3 &none &none
|
&trans &kp ESC &kp TAB &kp INSERT &kp ENTER &kp K_UNDO &kp N0 &kp N1 &kp N2 &kp N3 &none &none
|
||||||
&trans &trans &trans &trans &trans &trans
|
&trans &trans &trans &trans &trans &trans
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
gaming_layer {
|
|
||||||
bindings = <
|
|
||||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &none &kp N7 &kp N8 &kp N9 &none &kp C_PP
|
|
||||||
&kp LSHFT &kp A &kp S &kp D &kp F &kp G &none &kp N4 &kp N5 &kp N6 &kp N0 &kp C_VOL_UP
|
|
||||||
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N0 &kp N1 &kp N2 &kp N3 &none &kp C_VOL_DN
|
|
||||||
&kp LGUI &kp LCTRL &kp SPACE &tog 3 &kp ESC &none
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user