summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-11-17 21:50:36 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-11-17 21:50:36 -0500
commit8208ea05d4f642a49e83a0955602bb840002763a (patch)
tree070d108a9783e84d5d0df7d0fdaaabf73c6db9ce
parentc331a1249059e00d91545e0ec38e9690731ccc7b (diff)
Update corne ish zen config
-rw-r--r--build.yaml2
-rw-r--r--config/corneish_zen.conf6
-rw-r--r--config/corneish_zen.keymap57
3 files changed, 37 insertions, 28 deletions
diff --git a/build.yaml b/build.yaml
index 7f0a3cc..dbb3b6d 100644
--- a/build.yaml
+++ b/build.yaml
@@ -14,5 +14,7 @@
---
include:
- board: planck_rev6
+ - board: corneish_zen_v2_left
+ - board: corneish_zen_v2_right
- board: nice_nano_v2
shield: reviung41
diff --git a/config/corneish_zen.conf b/config/corneish_zen.conf
index 0ff1d8b..bb73eb7 100644
--- a/config/corneish_zen.conf
+++ b/config/corneish_zen.conf
@@ -2,4 +2,8 @@
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
# Turn on logging, and set ZMK logging to debug output
-# CONFIG_ZMK_USB_LOGGING=y \ No newline at end of file
+# CONFIG_ZMK_USB_LOGGING=y
+
+# Layer status updates too frequently for the display.
+CONFIG_ZMK_WIDGET_LAYER_STATUS=n
+CONFIG_CUSTOM_WIDGET_LAYER_STATUS=n
diff --git a/config/corneish_zen.keymap b/config/corneish_zen.keymap
index e27ed55..25a5daf 100644
--- a/config/corneish_zen.keymap
+++ b/config/corneish_zen.keymap
@@ -2,15 +2,20 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/mouse.h>
-
-#define QW 0
-#define DV 1
+/ {
+ chosen {
+ zmk,matrix_transform = &default_transform;
+ //zmk,matrix_transform = &five_column_transform;
+ };
+};
+#define DV 0
+#define QW 1
#define GAMING 2
#define LOW 3
#define UPR 4
#define NAV 5
#define MOUSE 6
-#define DVLOW 7
+#define QVLOW 7
#define GAMELOW 8
#define FN 9
@@ -64,9 +69,9 @@
if-layers = <LOW UPR>;
then-layer = <FN>;
};
- dvlow_layer {
- if-layers = <DV LOW>;
- then-layer = <DVLOW>;
+ qwlow_layer {
+ if-layers = <QW LOW>;
+ then-layer = <QVLOW>;
};
gamelow_layer {
if-layers = <GAMING LOW>;
@@ -78,6 +83,17 @@
compatible = "zmk,keymap";
default_layer {
+ label = "DVORAK";
+ // DV - Dvorak layer
+ bindings = <
+ &kp TAB &kp SQT &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &trans
+ &kp LCTRL &HM1(A) &HM2(O) &HM3(E) &HM4(U) &kp I &kp D &HM4(H) &HM3(T) &HM2(N) &HM1(S) &trans
+ &kp LSHFT &kp SEMI &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z &trans
+ &mo MOUSE &mo LOW &kp SPACE &kp SPACE &mo UPR &mo NAV
+ >;
+ };
+
+ dvorak_layer {
label = "QWERTY";
// This is a "QWERTY" keymap, but it's really intended to be used in dvorak mode
// (with setxkbmap us -variant dvorak -option compose:ralt).
@@ -85,22 +101,10 @@
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &trans
&kp LCTRL &HM1(A) &HM2(S) &HM3(D) &HM4(F) &kp G &kp H &HM4(J) &HM3(K) &HM2(L) &HM1(SEMI) &trans
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH &trans
-
&mo MOUSE &mo LOW &kp SPACE &kp SPACE &mo UPR &mo NAV
>;
};
- dvorak_layer {
- label = "DVORAK";
- // DV - Dvorak layer
- bindings = <
- &kp TAB &kp SQT &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &trans
- &kp LCTRL &HM1(A) &HM2(O) &HM3(E) &HM4(U) &kp I &kp D &HM4(H) &HM3(T) &HM2(N) &HM1(S) &trans
- &kp LSHFT &kp SEMI &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z &trans
- &mo MOUSE &mo LOW &kp SPACE &kp SPACE &mo UPR &mo NAV
- >;
- };
-
gaming_layer {
label = "GAMING";
bindings = <
@@ -115,9 +119,8 @@
lower_layer {
bindings = <
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &trans
-&trans &kp LGUI &kp LALT &kp LCTL &kp LSHFT &kp BSLH &kp LBKT &kp DQT &kp RBRC &kp UNDER &kp PLUS &trans
-&trans &kp GRAVE &kp TILDE &kp TAB &kp ESC &kp PIPE &kp LBRC &kp SQT &kp RBKT &kp MINUS &kp EQUAL &trans
-
+&trans &kp LGUI &kp LALT &kp LCTL &kp LSHFT &kp BSLH &kp FSLH &kp UNDER &kp PLUS &kp LBRC &kp RBRC &trans
+&trans &kp GRAVE &kp TILDE &kp TAB &kp ESC &kp PIPE &kp QMARK &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &trans
&trans &trans &trans &trans &trans &trans
>;
};
@@ -154,12 +157,11 @@
>;
};
- dvorak_lower_layer {
+ qwerty_lower_layer {
bindings = <
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &trans
-&trans &kp LGUI &kp LALT &kp LCTL &kp LSHFT &kp BSLH &kp FSLH &kp UNDER &kp PLUS &kp LBRC &kp RBRC &trans
-&trans &kp GRAVE &kp TILDE &kp TAB &kp ESC &kp PIPE &kp QMARK &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &trans
-
+&trans &kp LGUI &kp LALT &kp LCTL &kp LSHFT &kp BSLH &kp LBKT &kp DQT &kp RBRC &kp UNDER &kp PLUS &trans
+&trans &kp GRAVE &kp TILDE &kp TAB &kp ESC &kp PIPE &kp LBRC &kp SQT &kp RBKT &kp MINUS &kp EQUAL &trans
&trans &trans &trans &trans &trans &trans
>;
};
@@ -177,7 +179,8 @@
function_layer {
bindings = <
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
-&trans &kp F11 &kp F12 &to GAMING &to DV &to QW &trans &trans &trans &trans &trans &trans BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+&trans &kp F11 &kp F12 &to GAMING &to DV &to QW &trans &trans &trans &trans &trans &trans
+&trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};