diff options
Diffstat (limited to 'config/util.h')
-rw-r--r-- | config/util.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/util.h b/config/util.h new file mode 100644 index 0000000..ceff637 --- /dev/null +++ b/config/util.h @@ -0,0 +1,13 @@ +// Copyright 2022 @waffle87 +// SPDX-License-Identifier: MIT + +compatible = "zmk,combos"; +#define COMBO(name, keypress, keypos) \ +combo_##name { \ + timeout-ms = <50>; \ + bindings = <keypress>; \ + key-positions = <keypos>; \ +}; + +#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 |