diff options
author | jack <[email protected]> | 2023-12-12 18:13:10 -0700 |
---|---|---|
committer | jack <[email protected]> | 2023-12-12 18:13:10 -0700 |
commit | 63ecc3f8801c12899158d13f51348e8ea9a63a7c (patch) | |
tree | 61c506e6c9998d7da58e1026f73f4aea2bc84104 | |
parent | 941f66b20dbf3f9b8802df93892ad7dec8603f81 (diff) | |
download | zmk_build-63ecc3f8801c12899158d13f51348e8ea9a63a7c.tar.gz zmk_build-63ecc3f8801c12899158d13f51348e8ea9a63a7c.zip |
fixup
-rw-r--r-- | config/splitkb_aurora_sweep.keymap | 2 | ||||
l---------[-rw-r--r--] | config/util.h | 22 | ||||
-rw-r--r-- | util.h | 21 |
3 files changed, 23 insertions, 22 deletions
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 <behaviors.dtsi> #include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/bt.h> -#include "../util.h" +#include "util.h" < { tapping-term-ms = <100>; diff --git a/config/util.h b/config/util.h index e8b33a9..c2c4c13 100644..120000 --- a/config/util.h +++ b/config/util.h @@ -1,21 +1 @@ -// 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 +/home/jack/waffle_git/zmk-build/util.h
\ No newline at end of file @@ -0,0 +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 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 |