aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjack <[email protected]>2023-01-06 16:54:38 -0700
committerjack <[email protected]>2023-01-06 16:54:38 -0700
commit8581e9b41f1b403176fe3874f6cbb30b3acee6e5 (patch)
treeca72f6cfab038a3e8ed01c57e1ebb64dd08a58b9
parent736812340fbb675f582747308ae347c382ada023 (diff)
downloadzmk_build-8581e9b41f1b403176fe3874f6cbb30b3acee6e5.tar.gz
zmk_build-8581e9b41f1b403176fe3874f6cbb30b3acee6e5.zip
misc
-rwxr-xr-xbuild.sh4
-rw-r--r--config/corne.keymap8
-rw-r--r--util.h4
3 files changed, 9 insertions, 7 deletions
diff --git a/build.sh b/build.sh
index 159c619..506751b 100755
--- 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
index 70f34c8..7afad1d 100644
--- 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
index 3cfbed8..9fd2a71 100644
--- 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>; \
};