From 19ff7bc79a5110e131064bd30e28a3bd0948e965 Mon Sep 17 00:00:00 2001 From: Tim Nguyen Date: Sat, 19 Jun 2021 17:06:41 -0400 Subject: [PATCH] nhongooi keymap test increase debounce to 20 move debounce up move debounce to dts forgot ; debounce to 35 lower quick tap & raise debounce backspace readmode esp on raise default bebounce plain old qwerty for games added slay layer added slay layer fixed bracket put back debounce 15 --- boards/arm/zaphod/zaphod.dts | 5 +- boards/arm/zaphod/zaphod.keymap | 138 ++++++++++++-------------------- 2 files changed, 54 insertions(+), 89 deletions(-) diff --git a/boards/arm/zaphod/zaphod.dts b/boards/arm/zaphod/zaphod.dts index 83fd45b5..5a7eef07 100644 --- a/boards/arm/zaphod/zaphod.dts +++ b/boards/arm/zaphod/zaphod.dts @@ -70,6 +70,8 @@ kscan_left: kscan_left { compatible = "zmk,kscan-gpio-matrix"; label = "KSCAN_LEFT"; + debounce-press-ms = <1>; + debounce-release-ms = <5>; diode-direction = "col2row"; @@ -91,7 +93,8 @@ kscan_right: kscan_right { compatible = "zmk,kscan-gpio-matrix"; label = "KSCAN_RIGHT"; - + debounce-press-ms = <1>; + debounce-release-ms = <5>; diode-direction = "col2row"; col-gpios diff --git a/boards/arm/zaphod/zaphod.keymap b/boards/arm/zaphod/zaphod.keymap index 6ec50ba5..61233e40 100644 --- a/boards/arm/zaphod/zaphod.keymap +++ b/boards/arm/zaphod/zaphod.keymap @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Pete Johanson + * Copyright (c) 2020 The ZMK Contributors * * SPDX-License-Identifier: MIT */ @@ -9,15 +9,8 @@ #include #include -#define NAV_L 1 -#define OTH_L 2 -#define NUM_L 3 -#define SYM_L 4 -#define MED_L 5 -#define FUN_L 6 - // Using layer taps on thumbs, having quick tap as well helps w/ repeating space/backspace -< { quick_tap_ms = <200>; }; +< { quick_tap_ms = <160>; }; / { combos { @@ -38,88 +31,57 @@ }; behaviors { - hm: homerow_mods { - compatible = "zmk,behavior-hold-tap"; - label = "homerow mods"; - #binding-cells = <2>; - tapping_term_ms = <200>; - flavor = "tap-preferred"; - bindings = <&kp>, <&kp>; - }; + hm: homerow_mods { + compatible = "zmk,behavior-hold-tap"; + label = "HOMEROW_MODS"; + #binding-cells = <2>; + tapping-term-ms = <200>; + quick_tap_ms = <0>; + flavor = "tap-preferred"; + bindings = <&kp>, <&kp>; + }; }; - keymap { - compatible = "zmk,keymap"; - - default_layer { - label = "Base"; - bindings = < - &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P - &hm LGUI A &hm LALT S &hm LCTRL D &hm LSHFT F &kp G &kp H &hm RSHFT J &hm RCTRL K &hm LALT L &hm LGUI QUOT - &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH - < NAV_L TAB < OTH_L RET < NUM_L SPACE < SYM_L BKSP - >; - }; - - nav_layer { - label = "Nav"; - bindings = < - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans &kp LARW &kp DARW &kp UARW &kp RARW - &trans &trans &trans &trans &trans &trans &kp HOME &kp PG_DN &kp PG_UP &kp END - &trans &trans &kp ESC &kp DEL - >; - }; - - other_layer { - label = "Other"; - bindings = < - &trans &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 - &trans &trans &trans &trans - >; + compatible = "zmk,keymap"; + default_layer { + bindings = < + &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P + &hm LGUI A &hm LSHFT S &hm LCTRL D &hm LALT F &kp G &kp H &hm RALT J &hm RCTRL K &hm RSHFT L &hm RGUI SEMI + &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH + < 3 TAB < 1 SPC < 2 RET &kp BSPC + >; + }; + lower_layer { + bindings = < + &kp LG(SPC) &kp LC(LEFT) &trans &kp LC(RIGHT) &trans &kp LBKT &kp N7 &kp N8 &kp N9 &kp RBKT + &kp LG(LS(SPC)) &kp LG(J) &kp LG(K) &kp LG(L) &kp LG(SEMI) &kp SQT &kp N4 &kp N5 &kp N6 &kp EQUAL + &kp LG(LS(Q)) &kp LG(N1) &kp LG(N2) &kp LG(N3) &kp LG(N4) &kp MINUS &kp N1 &kp N2 &kp N3 &kp BSLH + &trans &trans &kp DOT &kp N0 + >; + }; + raise_layer { + bindings = < + &kp ESC &kp F1 &kp F2 &kp F3 &kp F4 &kp PG_UP &kp HOME &trans &kp ESC &kp GRAVE + &trans &kp F5 &kp F6 &kp F7 &kp F8 &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp COLON + &trans &kp F9 &kp F10 &kp F11 &kp F12 &kp PG_DN &kp END &kp DEL &trans &kp QMARK + &mo 4 &trans &trans &trans + >; + }; + con_layer { + bindings = < + &kp LC(LS(T)) &kp LC(LS(TAB)) &kp LC(W) &kp LC(TAB) &kp LC(LA(R)) &kp LBRC &kp AMPS &kp ASTRK &kp LPAR &kp RBRC + &kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp LC(Y) &kp DQT &kp DLLR &kp PRCNT &kp CARET &kp PLUS + &trans &kp LA(B) &kp LA(D) &kp LA(F) &kp LC(N1) &kp UNDER &kp EXCL &kp AT &kp HASH &kp PIPE + &trans &trans &trans &kp RPAR + >; }; - - num_layer { - label = "Num"; - bindings = < - &kp LBKT &kp N7 &kp N8 &kp N9 &kp RBKT &trans &trans &trans &trans &trans - &kp SEMI &kp N4 &kp N5 &kp N6 &kp EQUAL &trans &trans &trans &trans &trans - &kp GRAVE &kp N1 &kp N2 &kp N3 &kp BSLH &trans &trans &trans &trans &trans - &kp N0 &kp MINUS &trans &trans - >; - }; - - sym_layer { - label = "Sym"; - bindings = < - &kp LBRC &kp LS(N7) &kp LS(N8) &kp LS(N9) &kp RBRC &trans &trans &trans &trans &trans - &kp COLON &kp LS(N4) &kp LS(N5) &kp LS(N6) &kp PLUS &trans &trans &trans &trans &trans - &kp TILDE &kp LS(N1) &kp LS(N2) &kp LS(N3) &kp LS(BSLH) &trans &trans &trans &trans &trans - &kp LS(N0) &kp UNDER &trans &trans - >; - }; - - media_layer { - label = "Media"; - bindings = < - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_VOL_DN &kp C_VOL_UP &kp C_NEXT - &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &trans &trans &kp C_STOP &kp C_PLAY_PAUSE - >; - }; - - fun_layer { - label = "Fun"; - bindings = < - &kp F12 &kp F7 &kp F8 &kp F9 &kp PSCRN &trans &trans &trans &trans &trans - &kp F11 &kp F4 &kp F5 &kp F6 &kp SLCK &trans &trans &trans &trans &trans - &kp F10 &kp F1 &kp F2 &kp F3 &kp PAUSE_BREAK &trans &trans &trans &trans &trans - &none &none &trans &trans - >; + adj_layer { + bindings = < + &bt BT_CLR &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &tog 5 &tog 6 &trans &trans &bootloader + &bt BT_NXT &trans &trans &trans &trans &trans &trans &trans &trans &out OUT_TOG + &bt BT_PRV &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans + >; }; }; }; -