Add zorne stuff
This commit is contained in:
parent
108f699bf5
commit
2af3d082fe
5 changed files with 122 additions and 0 deletions
1
zorne/.gitignore
vendored
Normal file
1
zorne/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/*/
|
15
zorne/build.fish
Executable file
15
zorne/build.fish
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
test -d zmk/app || git clone git@github.com:zmkfirmware/zmk.git
|
||||
docker run -it --rm \
|
||||
-v (pwd):/zorne \
|
||||
zmkfirmware/zmk-build-arm:2.4 bash -c '
|
||||
cd /zorne
|
||||
west init
|
||||
west update
|
||||
west zephyr-export
|
||||
west build -s zmk/app -b nice_nano -- -DSHIELD=corne_left -DZMK_CONFIG="./"
|
||||
cp build/zephyr/zmk.uf2 corne_left_nice_nano.uf2
|
||||
west build --pristine -s zmk/app -b nice_nano -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||
cp build/zephyr/zmk.uf2 corne_right_nice_nano.uf2
|
||||
exec bash'
|
8
zorne/corne.conf
Normal file
8
zorne/corne.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Uncomment the following lines to enable the Corne RGB Underglow
|
||||
# CONFIG_ZMK_RGB_UNDERGLOW=y
|
||||
# CONFIG_WS2812_STRIP=y
|
||||
|
||||
# Uncomment the following line to enable the Corne OLED Display
|
||||
# CONFIG_ZMK_DISPLAY=y
|
||||
|
||||
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
87
zorne/corne.keymap
Normal file
87
zorne/corne.keymap
Normal file
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* Copyright (c) 2020 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
#include <dt-bindings/zmk/outputs.h>
|
||||
#include <dt-bindings/zmk/bt.h>
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
default_layer {
|
||||
// -------------------------------------- ---------------------------------------
|
||||
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP |
|
||||
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | ENT |
|
||||
// -------------------| GUI | SPC | LWR | | RSE | SPC | ALT |-------------------
|
||||
// ------------------- --------------------
|
||||
bindings = <
|
||||
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
||||
&kp LCTRL &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 Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RET
|
||||
&kp LGUI &kp SPACE &mo 1 &mo 2 &kp SPACE &kp RALT
|
||||
>;
|
||||
};
|
||||
left_layer {
|
||||
// -------------------------------------- --------------------------------------
|
||||
// | ~ | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
|
||||
// | CTRL | | | | | | | | _ | + | { | } | "|" |
|
||||
// | SHFT | | | | | | | | | < | > | ? | | // TODO: Fix this row when &mkp is committed
|
||||
// -------------------| | | | | ADJ | ENT | |-------------------
|
||||
// ------------------- -------------------
|
||||
bindings = <
|
||||
&kp TILDE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSPC
|
||||
&kp LCTRL &trans &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE
|
||||
&kp LSHFT &trans &trans &trans &trans &trans &trans &trans &kp GT &kp LT &kp QMARK &kp TILDE
|
||||
&trans &trans &trans &mo 3 &kp RET &trans
|
||||
>;
|
||||
};
|
||||
};
|
||||
right_layer {
|
||||
// -------------------------------------- --------------------------------------
|
||||
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP |
|
||||
// | | | | | | | | | - | = | [ | ] | \ |
|
||||
// | | | | | | | | | INS | | | | |
|
||||
// -------------------| | ALT | ADJ | | | | |-------------------
|
||||
// ------------------- -------------------
|
||||
bindings = <
|
||||
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
|
||||
&trans &trans &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kb BSLH
|
||||
&trans &trans &trans &trans &trans &trans &trans &kb INS &trans &trans &trans &trans
|
||||
&trans &kp LALT &mo 3 &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
adjust_layer {
|
||||
// ------------------------------------- -------------------------------------
|
||||
// | | LCL | MSU | RCL | MWU | | | MNX | MVD | MPL | MVU | MPV | | // TODO: once mouse keys exist
|
||||
// | | MSL | MSD | MSR | MWD | USB | | LFT | DWN | UP | RGT | | | // TODO: once mouse keys exist
|
||||
// |CONFG| BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
||||
// ------------------| | | | | | | |------------------
|
||||
// ------------------- -------------------
|
||||
bindings = <
|
||||
&trans &trans &trans &trans &trans &trans &kp C_NEXT &kp C_VOL_DN &kp K_PP &kp C_VOL_UP &kp C_PREV &trans
|
||||
&trans &trans &trans &trans &trans &out USB &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
|
||||
&mo 4 &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans
|
||||
&trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
config_layer {
|
||||
// ------------------------------------- -------------------------------------
|
||||
// |BTCLR| | | | | | | | | | | | |
|
||||
// | | | | | | | | | | | | | |
|
||||
// | | | | | | | | | | | | |RESET|
|
||||
// ------------------| | | | | | | |------------------
|
||||
// ------------------- -------------------
|
||||
bindings = <
|
||||
&bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &reset
|
||||
&trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
};
|
11
zorne/west.yml
Normal file
11
zorne/west.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
manifest:
|
||||
remotes:
|
||||
- name: zmkfirmware
|
||||
url-base: https://github.com/zmkfirmware
|
||||
projects:
|
||||
- name: zmk
|
||||
remote: zmkfirmware
|
||||
revision: main
|
||||
import: app/west.yml
|
||||
self:
|
||||
path: config
|
Loading…
Reference in a new issue