zmk_build

ZMK code & build repository
git clone https://git.pngu.org/zmk_build
Log | Files | Refs | Submodules | README

commit 8581e9b41f1b403176fe3874f6cbb30b3acee6e5
parent 736812340fbb675f582747308ae347c382ada023
Author: jack <0x6A73@pm.me>
Date:   Fri,  6 Jan 2023 16:54:38 -0700

misc

Diffstat:
Mbuild.sh | 4+++-
Mconfig/corne.keymap | 8++++----
Mutil.h | 4++--
3 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/build.sh b/build.sh @@ -39,7 +39,8 @@ do "revxlp") echo "building revxlp firmware..." cp config/corne.keymap revxlp/revxlp.keymap - if ! [ -L $LINK]; then + cp util.h ${ZMK_DIR}/app/boards/shields + if [ ! -L $LINK ]; then ln -s ~/waffle_git/zmk-build/revxlp $LINK fi (cd ${ZMK_DIR}/app @@ -47,6 +48,7 @@ do cp ${ZMK_DIR}/app/build/zephyr/zmk.uf2 ~/revxlp.uf2 ) rm revxlp/revxlp.keymap + rm ${ZMK_DIR}/app/boards/shields/util.h echo "complete :^)" break ;; diff --git a/config/corne.keymap b/config/corne.keymap @@ -66,10 +66,10 @@ bindings = <&kp C_PLAY>, <&kp C_NEXT>, <&kp C_PREV>; }; - TAP_DANCE(bsls_pipe, &kp BSLH, &kp PIPE, #) - TAP_DANCE(quot_dquo, &kp SQT, &kp DQT, #) - TAP_DANCE(cbrkt, &kp LBRC, &kp RBRC, #) - TAP_DANCE(brkt, &kp LBKT, &kp RBKT, #) + TAP_DANCE(bsls_pipe, &kp BSLH, &kp PIPE) + TAP_DANCE(quot_dquo, &kp SQT, &kp DQT) + TAP_DANCE(cbrkt, &kp LBRC, &kp RBRC) + TAP_DANCE(brkt, &kp LBKT, &kp RBKT) }; macros { diff --git a/util.h b/util.h @@ -9,11 +9,11 @@ combo_##name { \ key-positions = <keypos>; \ }; -#define TAP_DANCE(name, keypress1, keypress2, hash) \ +#define TAP_DANCE(name, keypress1, keypress2) \ td_##name: name { \ compatible = "zmk,behavior-tap-dance"; \ label = "name"; \ - hash##binding-cells = <0>; \ + #binding-cells = <0>; \ tapping-term-ms = <200>; \ bindings = <keypress1>, <keypress2>; \ };