diff --git a/config/splitkb_aurora_sweep.keymap b/config/splitkb_aurora_sweep.keymap index 12828f9..720ffb1 100644 --- a/config/splitkb_aurora_sweep.keymap +++ b/config/splitkb_aurora_sweep.keymap @@ -4,7 +4,7 @@ #include #include #include -#include "../util.h" +#include "util.h" < { tapping-term-ms = <100>; diff --git a/config/util.h b/config/util.h deleted file mode 100644 index e8b33a9..0000000 --- a/config/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 = ; \ - key-positions = ; \ -}; - -#define TAP_DANCE(name, keypress1, keypress2) \ -td_##name: name { \ - compatible = "zmk,behavior-tap-dance"; \ - label = ###name; \ - #binding-cells = <0>; \ - tapping-term-ms = <200>; \ - bindings = , ; \ -}; - -#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/config/util.h b/config/util.h new file mode 120000 index 0000000..c2c4c13 --- /dev/null +++ b/config/util.h @@ -0,0 +1 @@ +/home/jack/waffle_git/zmk-build/util.h \ No newline at end of file diff --git a/util.h b/util.h new file mode 100644 index 0000000..e8b33a9 --- /dev/null +++ b/util.h @@ -0,0 +1,21 @@ +// Copyright 2022 jack (@waffle87) +// SPDX-License-Identifier: MIT + +#define COMBO(name, keypress, keypos) \ +combo_##name { \ + timeout-ms = <50>; \ + bindings = ; \ + key-positions = ; \ +}; + +#define TAP_DANCE(name, keypress1, keypress2) \ +td_##name: name { \ + compatible = "zmk,behavior-tap-dance"; \ + label = ###name; \ + #binding-cells = <0>; \ + tapping-term-ms = <200>; \ + bindings = , ; \ +}; + +#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