Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
waffle87 committed Dec 13, 2023
1 parent 941f66b commit 63ecc3f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion config/splitkb_aurora_sweep.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -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"

&lt {
tapping-term-ms = <100>;
Expand Down
21 changes: 0 additions & 21 deletions config/util.h

This file was deleted.

1 change: 1 addition & 0 deletions config/util.h
21 changes: 21 additions & 0 deletions 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

0 comments on commit 63ecc3f

Please sign in to comment.