summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <nick@nv.delivery>2021-10-05 18:27:36 -0700
committerNick Van Doorn <nick@nv.delivery>2021-10-25 12:13:08 -0700
commit1d552328d0b996efd0c2077e133de746c34c7566 (patch)
tree220ac3ee939848b99f495751c6e6b5fa421a6a67
parentc052b0b5aa9d0900d0d209d5902f6f1c0258efc1 (diff)
Setup layoutmain
Wow this was a struggle and I really wish this just worked with QMK layouts but here we are.
-rw-r--r--app/boards/shields/corne/corne.conf2
-rw-r--r--app/boards/shields/corne/corne.keymap43
-rwxr-xr-xbuild.sh3
3 files changed, 17 insertions, 31 deletions
diff --git a/app/boards/shields/corne/corne.conf b/app/boards/shields/corne/corne.conf
index 974243c..0dcaf05 100644
--- a/app/boards/shields/corne/corne.conf
+++ b/app/boards/shields/corne/corne.conf
@@ -3,4 +3,4 @@
# CONFIG_WS2812_STRIP=y
# Uncomment the following line to enable the Corne OLED Display
-# CONFIG_ZMK_DISPLAY=y
+CONFIG_ZMK_DISPLAY=y
diff --git a/app/boards/shields/corne/corne.keymap b/app/boards/shields/corne/corne.keymap
index 53218a8..61da4fd 100644
--- a/app/boards/shields/corne/corne.keymap
+++ b/app/boards/shields/corne/corne.keymap
@@ -7,49 +7,36 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
+#include <dt-bindings/zmk/outputs.h>
+#include <dt-bindings/zmk/ext_power.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 | , | . | / | ESC |
-// | GUI | LWR | SPC | | ENT | RSE | 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 ESC
- &kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
+ &kp ESC &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 RALT
+ &kp LCTRL &mo 2 &kp SPACE &kp RET &mo 1 &kp RGUI
>;
};
- lower_layer {
-// -----------------------------------------------------------------------------------------
-// | TAB | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP |
-// | BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | LFT | DWN | UP | RGT | | |
-// | SHFT | | | | | | | | | | | | |
-// | GUI | | SPC | | ENT | | ALT |
+ raise_layer {
bindings = <
- &kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
- &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
- &kp LSHFT &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
- &kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
+ &kp DOWN &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp UP
+ &trans &trans &trans &trans &trans &trans &kp TILDE &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &trans
+ &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+ &trans &trans &trans &trans &trans &trans
>;
};
- raise_layer {
-// -----------------------------------------------------------------------------------------
-// | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
-// | CTRL | | | | | | | - | = | [ | ] | \ | ` |
-// | SHFT | | | | | | | _ | + | { | } | "|" | ~ |
-// | GUI | | SPC | | ENT | | ALT |
+ lower_layer {
bindings = <
- &kp TAB &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 &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
- &kp LSHFT &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
- &kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
+ &kp LEFT &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp RIGHT
+ &out OUT_TOG &ext_power EP_OFF &ext_power EP_ON &trans &trans &trans &kp GRAVE &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE
+ &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &kp BACKSLASH &trans
+ &trans &trans &trans &trans &trans &trans
>;
};
};
diff --git a/build.sh b/build.sh
index c31fb55..fb1c4e8 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,4 @@
-export PATH=~/Library/Python/3.9/bin:$PATH
-export GNUARMEMB_TOOLCHAIN_PATH=/usr/local
+export GNUARMEMB_TOOLCHAIN_PATH=/opt/homebrew/bin
export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
west build app -d build/left -b nice_nano_v2 -- -DSHIELD=corne_left
west build app -d build/right -b nice_nano_v2 -- -DSHIELD=corne_right