aboutsummaryrefslogtreecommitdiff
path: root/config/util.h
diff options
context:
space:
mode:
authorJack Sangdahl <0x6A73@pm.me>2024-02-25 15:34:31 -0700
committerJack Sangdahl <0x6A73@pm.me>2024-02-25 15:34:31 -0700
commitd8353f5b4c5c8c5f28c9a81506f91ff3092cae0b (patch)
treedf79ce937855ebff4ad2af23f0c7116e2e00c0b7 /config/util.h
parent22004dc2c7b090f1f07bf47f114cef730a05a50b (diff)
downloadzmk_build-d8353f5b4c5c8c5f28c9a81506f91ff3092cae0b.tar.gz
zmk_build-d8353f5b4c5c8c5f28c9a81506f91ff3092cae0b.zip
revert
Diffstat (limited to 'config/util.h')
-rw-r--r--config/util.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/config/util.h b/config/util.h
index b6fe42a..e8b33a9 100644
--- a/config/util.h
+++ b/config/util.h
@@ -1,21 +1,21 @@
-// Copyright 2024 jack (@waffle87)
+// 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