diff options
author | Jack Sangdahl <[email protected]> | 2024-03-19 11:04:23 -0600 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2024-03-19 11:04:23 -0600 |
commit | 74139b7f24e2427fb189350ebb1f69836fe76a03 (patch) | |
tree | b08d9ad6c908c9c8598fb43763a0a696f5587b21 | |
parent | 23795a8ad7a8f57d8d20690aff4a8e7ed4799c2a (diff) | |
download | zmk_build-74139b7f24e2427fb189350ebb1f69836fe76a03.tar.gz zmk_build-74139b7f24e2427fb189350ebb1f69836fe76a03.zip |
add corneish zen
-rwxr-xr-x | build.sh | 12 | ||||
-rw-r--r-- | build.yaml | 2 | ||||
-rw-r--r-- | config/corneish_zen_v1.conf | 2 | ||||
-rw-r--r-- | config/corneish_zen_v1.keymap | 53 |
4 files changed, 65 insertions, 4 deletions
@@ -14,7 +14,7 @@ build() { (cd $ZMK_DIR/app MODULE_CMD="" if [ -n $3 ]; then - MODULE_CMD=-DZMK_EXTRA_MODULES="$HOME/git/zmk-build/$3" + MODULE_CMD="-DZMK_EXTRA_MODULES=$HOME/git/zmk-build/$3" fi west build -p always -b $2 -- -DSHIELD=$1 \ -DZMK_CONFIG=$HOME/git/zmk-build/config $MODULE_CMD @@ -35,7 +35,7 @@ build() { } printf "${BOLD}firmware to build${NORMAL}...\n" -printf "(1) corne\t(2) revxlp\t(3) sweep\t(4) settings reset:\t" +printf "(1) corne\t(2) corne-ish zen\t(3) revxlp\t(4) sweep\t(5) settings reset:\t" read opt; case $opt in 1) @@ -43,13 +43,17 @@ case $opt in build corne_right nice_nano_v2 ;; 2) - build revxlp seeeduino_xiao_ble "revxlp" + build corneish_zen_v1_left + build corneish_zen_v1_right ;; 3) + build revxlp seeeduino_xiao_ble "revxlp" + ;; + 4) build splitkb_aurora_sweep_left nice_nano_v2 build splitkb_aurora_sweep_right nice_nano_v2 ;; - 4) + 5) printf "${BOLD}select microcontroller${NORMAL}...\n" printf "(1) nice nano\t(2) nice nano v2\t(3) xiao ble:\t" read val; @@ -6,6 +6,8 @@ include: shield: corne_right - board: nice_nano_v2 shield: splitkb_aurora_sweep_left + - board: corneish_zen_v1_left + - board: corneish_zen_v1_right - board: nice_nano_v2 shield: splitkb_aurora_sweep_right - board: nice_nano diff --git a/config/corneish_zen_v1.conf b/config/corneish_zen_v1.conf new file mode 100644 index 0000000..d85021a --- /dev/null +++ b/config/corneish_zen_v1.conf @@ -0,0 +1,2 @@ +CONFIG_ZMK_SLEEP=y +CONFIG_ZMK_USB_LOGGING=n diff --git a/config/corneish_zen_v1.keymap b/config/corneish_zen_v1.keymap new file mode 100644 index 0000000..5673fdf --- /dev/null +++ b/config/corneish_zen_v1.keymap @@ -0,0 +1,53 @@ +// Copyright 2024 jack (@waffle87) +// SPDX-License-Identifier: MIT + +#include <behaviors.dtsi> +#include <dt-bindings/zmk/keys.h> +#include <dt-bindings/zmk/bt.h> +#include "util.h" + +/ { + keymap { + compatible = "zmk,keymap"; + 0 { + bindings = < + &none &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &none + &none HRML(A, S, D, F) &kp G &kp H HRMR(J, K, L, SEMI) &none + &none &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &trans + &updir < 1 ESC &kp SPACE &kp BSPC < 2 RS(RC(V)) &pnp + >; + }; + 1 { + bindings = < + &trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans + &trans HRML(EXCL, AT, HASH, DLLR) &kp PRCNT &kp CARET HRMR(AMPS, ASTRK, LPAR, RPAR) &trans + &trans &kp C_VOL_DN &kp TAB &kp CAPS &kp TILDE &kp GRAVE &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp C_VOL_UP &trans + &none &trans &none &none &none &none + >; + }; + 2 { + bindings = < + &trans &bootloader &bt BT_NXT &none &none &none &none &none &none &none &none &trans + &trans &bt BT_CLR &bt BT_PRV &none &none &none &none &none &none &none &none &trans + &trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans + &none &none &none &none &trans &none + >; + }; + }; + + combos { + compatible = "zmk,combos"; + // name output pos. + COMBO(ru_ent, &kp RET, 4 7) + COMBO(dk_eql, &kp EQUAL, 15 20) + COMBO(gh_quot, &td_quot_dquo, 17 18) + COMBO(ty_coln, &kp COLON, 5 6) + COMBO(bn_unds, &kp UNDER, 29 30) + COMBO(er_cbkt, &td_cbrkt, 3 4) + COMBO(ui_brkt, &td_brkt, 7 8) + COMBO(ccom_plus, &kp PLUS, 27 32) + COMBO(ei_bsls, &td_bsls_pipe, 3 8) + COMBO(vm_mins, &td_min_dash, 28 31) + COMBO(fj_capw, &caps_word, 16 19) + }; +}; |