aboutsummaryrefslogtreecommitdiff
path: root/config/util.h
diff options
context:
space:
mode:
authorJack Sangdahl <0x6A73@pm.me>2024-02-25 16:14:27 -0700
committerJack Sangdahl <0x6A73@pm.me>2024-02-25 16:14:27 -0700
commitc06a8f9c838e25b49b27c1d9393fdc08b6c33fe2 (patch)
treec229311728bf2a4cdb07562b423126b31320d56f /config/util.h
parentf77ce1e74ba8e0161688b018d20a8aa145122119 (diff)
downloadzmk_build-c06a8f9c838e25b49b27c1d9393fdc08b6c33fe2.tar.gz
zmk_build-c06a8f9c838e25b49b27c1d9393fdc08b6c33fe2.zip
move common configuration
Diffstat (limited to 'config/util.h')
-rw-r--r--config/util.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/config/util.h b/config/util.h
index 58a788e..640b1d5 100644
--- a/config/util.h
+++ b/config/util.h
@@ -19,3 +19,51 @@ td_##name: name { \
#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
+
+&lt {
+ tapping-term-ms = <100>;
+};
+
+/ {
+ behaviors {
+ hm: homerow_mods {
+ compatible = "zmk,behavior-hold-tap";
+ label = "HOMEROW_MODS";
+ #binding-cells = <2>;
+ tapping-term-ms = <130>;
+ quick-tap-ms = <160>;
+ flavor = "tap-preferred";
+ bindings = <&kp>, <&kp>;
+ };
+
+ pnp: play_next_prev {
+ compatible = "zmk,behavior-tap-dance";
+ label = "PLAY_NEXT_PREV";
+ #binding-cells = <0>;
+ tapping-term-ms = <210>;
+ bindings = <&kp C_PLAY>, <&kp C_NEXT>, <&kp C_PREV>;
+ };
+ TAP_DANCE(bsls_pipe, &kp BSLH, &kp PIPE)
+ TAP_DANCE(quot_dquo, &kp SQT, &kp DQT)
+ TAP_DANCE(cbrkt, &kp LBRC, &kp RBRC)
+ TAP_DANCE(brkt, &kp LBKT, &kp RBKT)
+ TAP_DANCE(min_dash, &kp MINUS, &emdash)
+ };
+
+ macros {
+ updir: updir {
+ label = "UP_DIR";
+ compatible = "zmk,behavior-macro";
+ #binding-cells = <0>;
+ bindings = <&macro_tap &kp DOT &kp DOT &kp FSLH>;
+ };
+ emdash: emdash {
+ label = "EM_DASH";
+ compatible = "zmk,behavior-macro";
+ #binding-cells = <0>;
+ bindings = <&macro_press &kp LSHFT &kp LCTRL>,
+ <&macro_tap &kp U &kp N2 &kp N0 &kp N1 &kp N4>,
+ <&macro_release &kp LSHFT &kp LCTRL>;
+ };
+ };
+};