Skip to content

Commit

Permalink
move util
Browse files Browse the repository at this point in the history
  • Loading branch information
waffle87 committed Feb 25, 2024
1 parent 3180649 commit 9d61a1f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
1 change: 0 additions & 1 deletion config/util.h

This file was deleted.

21 changes: 21 additions & 0 deletions config/util.h
Original file line number Diff line number Diff line change
@@ -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
21 changes: 0 additions & 21 deletions util.h

This file was deleted.

0 comments on commit 9d61a1f

Please sign in to comment.