aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-02-25 15:46:55 -0700
committerJack Sangdahl <[email protected]>2024-02-25 15:46:55 -0700
commit5144b1e7cb4ce6cad597231287db2706900f45b7 (patch)
tree5603fa629adca8d03d97b10ff7d55a3ea23f2649 /config
parentd8353f5b4c5c8c5f28c9a81506f91ff3092cae0b (diff)
downloadzmk_build-5144b1e7cb4ce6cad597231287db2706900f45b7.tar.gz
zmk_build-5144b1e7cb4ce6cad597231287db2706900f45b7.zip
fixup revxlp
Diffstat (limited to 'config')
-rw-r--r--config/revxlp.conf1
-rw-r--r--config/util.h32
2 files changed, 17 insertions, 16 deletions
diff --git a/config/revxlp.conf b/config/revxlp.conf
index dfa521c..d85021a 100644
--- a/config/revxlp.conf
+++ b/config/revxlp.conf
@@ -1 +1,2 @@
CONFIG_ZMK_SLEEP=y
+CONFIG_ZMK_USB_LOGGING=n
diff --git a/config/util.h b/config/util.h
index e8b33a9..a5e503e 100644
--- a/config/util.h
+++ b/config/util.h
@@ -1,21 +1,21 @@
// Copyright 2022 jack (@waffle87)
// SPDX-License-Identifier: MIT
-#define COMBO(name, keypress, keypos) \
-combo_##name { \
- timeout-ms = <50>; \
- bindings = <keypress>; \
- key-positions = <keypos>; \
-};
+#define COMBO(name, keypress, keypos) \
+ combo_##name { \
+ timeout - ms = <50>; \
+ bindings = <keypress>; \
+ key - positions = <keypos>; \
+ };
-#define TAP_DANCE(name, keypress1, keypress2) \
-td_##name: name { \
- compatible = "zmk,behavior-tap-dance"; \
- label = ###name; \
- #binding-cells = <0>; \
- tapping-term-ms = <200>; \
- bindings = <keypress1>, <keypress2>; \
-};
+#define TAP_DANCE(name, keypress1, keypress2) \
+ td_##name : name { \
+ compatible = "zmk,behavior-tap-dance"; \
+ label = ## #name; \
+ #binding - cells = <0>; \
+ tapping - term - ms = <200>; \
+ bindings = <keypress1>, <keypress2>; \
+ };
-#define HRML(k1,k2,k3,k4) &hm LALT k1 &hm LGUI k2 &hm LCTRL k3 &hm LSHFT k4
-#define HRMR(k1,k2,k3,k4) &hm RSHFT k1 &hm RCTRL k2 &hm RGUI k3 &hm RALT k4
+#define HRML(k1, k2, k3, k4) &hm LALT k1 &hm LGUI k2 &hm LCTRL k3 &hm LSHFT k4
+#define HRMR(k1, k2, k3, k4) &hm RSHFT k1 &hm RCTRL k2 &hm RGUI k3 &hm RALT k4