aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-02-24 20:56:11 -0700
committerJack Sangdahl <[email protected]>2024-02-24 20:56:11 -0700
commit9d61a1f55ff211b196c21922803011901455bec2 (patch)
treedf79ce937855ebff4ad2af23f0c7116e2e00c0b7
parent3180649f051315b1346b0a2ee5de401370794115 (diff)
downloadzmk_build-9d61a1f55ff211b196c21922803011901455bec2.tar.gz
zmk_build-9d61a1f55ff211b196c21922803011901455bec2.zip
move util
-rw-r--r--[l---------]config/util.h22
-rw-r--r--util.h21
2 files changed, 21 insertions, 22 deletions
diff --git a/config/util.h b/config/util.h
index c2c4c13..e8b33a9 120000..100644
--- a/config/util.h
+++ b/config/util.h
@@ -1 +1,21 @@
-/home/jack/waffle_git/zmk-build/util.h \ No newline at end of file
+// Copyright 2022 jack (@waffle87)
+// SPDX-License-Identifier: MIT
+
+#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 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
diff --git a/util.h b/util.h
deleted file mode 100644
index e8b33a9..0000000
--- a/util.h
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright 2022 jack (@waffle87)
-// SPDX-License-Identifier: MIT
-
-#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 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