Skip to content

Commit 7a7f3d0

Browse files
committed
Configure tap settings
1 parent 21a9933 commit 7a7f3d0

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

config/charybdis.keymap

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@
44
#include <dt-bindings/zmk/keys.h>
55
#include <dt-bindings/zmk/pointing.h>
66

7-
#define U_TAPPING_TERM 175
7+
#define U_TAPPING_TERM 280
8+
#define U_QUICK_TAP 175
9+
#define U_REQUIRE_PRIOR_IDLE 150
10+
11+
// Key position ranges for hold-trigger-key-positions
12+
// Left hand: columns 0-5 (positions 0-11, 24-28)
13+
// Right hand: columns 6-11 (positions 12-23, 29-34)
14+
#define LEFT_HAND_KEYS 0 1 2 3 4 5 6 7 8 9 10 11 24 25 26 27 28
15+
#define RIGHT_HAND_KEYS 12 13 14 15 16 17 18 19 20 21 22 23 29 30 31 32 33 34
16+
#define THUMB_KEYS 24 25 26 27 28 29 30 31 32 33 34
817
#define BASE 0
918
#define NAV 1
1019
#define SYMNUM 2
@@ -79,18 +88,21 @@
7988
compatible = "zmk,behavior-hold-tap";
8089
#binding-cells = <2>;
8190
tapping-term-ms = <U_TAPPING_TERM>;
82-
flavor = "tap-preferred";
91+
quick-tap-ms = <U_QUICK_TAP>;
92+
require-prior-idle-ms = <U_REQUIRE_PRIOR_IDLE>;
93+
flavor = "balanced";
8394
bindings = <&kp>, <&kp>;
95+
hold-trigger-key-positions = <RIGHT_HAND_KEYS THUMB_KEYS>;
96+
hold-trigger-on-release;
8497
};
8598

8699
u_lt: u_lt {
87100
compatible = "zmk,behavior-hold-tap";
88101
#binding-cells = <2>;
89102
tapping-term-ms = <U_TAPPING_TERM>;
90-
flavor = "tap-preferred";
103+
flavor = "balanced";
91104
bindings = <&mo>, <&kp>;
92-
93-
quick-tap-ms = <U_TAPPING_TERM>;
105+
quick-tap-ms = <U_QUICK_TAP>;
94106
};
95107
};
96108

0 commit comments

Comments
 (0)