diff options
author | jack <[email protected]> | 2023-01-06 13:25:21 -0700 |
---|---|---|
committer | jack <[email protected]> | 2023-01-06 13:25:21 -0700 |
commit | f0bef0edd90b9d1426a617a9f4d28536957f8a00 (patch) | |
tree | ee864bf25575bb49110373a8ea702fc32fc4239d | |
parent | 86a6bbd42ba7dcb68efc398ac0f8d426364cef4a (diff) | |
download | zmk_build-f0bef0edd90b9d1426a617a9f4d28536957f8a00.tar.gz zmk_build-f0bef0edd90b9d1426a617a9f4d28536957f8a00.zip |
combo/tapdance overhaul
-rw-r--r-- | config/corne.keymap | 85 | ||||
-rw-r--r-- | revxlp/Kconfig.defconfig | 4 | ||||
-rw-r--r-- | revxlp/revxlp.conf | 4 | ||||
-rw-r--r-- | revxlp/revxlp.overlay | 9 |
4 files changed, 57 insertions, 45 deletions
diff --git a/config/corne.keymap b/config/corne.keymap index c039f69..d101938 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -7,7 +7,7 @@ #include "../util.h" < { - tapping-term-ms = <100>; + tapping-term-ms = <100>; }; / { @@ -49,21 +49,49 @@ behaviors { hm: homerow_mods { - compatible = "zmk,behavior-hold-tap"; - label = "HOMEROW_MODS"; - #binding-cells = <2>; - tapping-term-ms = <150>; - quick_tap_ms = <0>; - flavor = "tap-preferred"; - bindings = <&kp>, <&kp>; + compatible = "zmk,behavior-hold-tap"; + label = "HOMEROW_MODS"; + #binding-cells = <2>; + tapping-term-ms = <140>; + quick_tap_ms = <0>; + 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>; + 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>; + }; + bsls_pipe: backslash_pipe { + compatible = "zmk,behavior-tap-dance"; + label = "BACKSLASH_PIPE"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp BSLH>, <&kp PIPE>; + }; + quot_dquo: quote_dquote { + compatible = "zmk,behavior-tap-dance"; + label = "QUOTE_DQUOTE"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp SQT>, <&kp DQT>; + }; + cbrkt: l_r_curly_bracket { + compatible = "zmk,behavior-tap-dance"; + label = "L_R_CURLY_BRACKET"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp LBRC>, <&kp RBRC>; + }; + brkt: l_r_bracket { + compatible = "zmk,behavior-tap-dance"; + label = "L_R_BRACKET"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp LBKT>, <&kp RBKT>; }; }; @@ -78,21 +106,20 @@ combos { compatible = "zmk,combos"; - // name output pos. layer - COMBO(entr, &kp RET, 4 7, 0 1) - COMBO(quot, &kp SQT, 17 18, 0 1) - COMBO(dquo, &kp DQT, 27 32, 0 1) - COMBO(lbrc, &kp LBRC, 3 4, 0 1) - COMBO(rbkt, &kp LBKT, 7 8, 0 1) - COMBO(bksl, &kp BSLH, 3 8, 0 1) - COMBO(coln, &kp COLON, 5 6, 0 1) - COMBO(plus, &kp PLUS, 14 21, 0 1) - COMBO(ques, &kp QMARK, 28 31, 0 1) - COMBO(unds, &kp UNDER, 29 30, 0 1) - COMBO(mins, &kp MINUS, 2 9, 0 1) - COMBO(eqal, &kp EQUAL, 15 20, 0 1) - COMBO(capw, &caps_word, 16 19, 0 1) - COMBO(clmk, &tog 1, 0 10, 0) - COMBO(qwrt, &tog 0, 0 10, 1) + // name output pos. layer + COMBO(ru_ent, &kp RET, 4 7, 0 1) + COMBO(dk_eql, &kp EQUAL, 15 20, 0 1) + COMBO(gh_quot, "_dquo, 17 18, 0 1) + COMBO(vm_ques, &kp QMARK, 28 31, 0 1) + COMBO(ty_coln, &kp COLON, 5 6, 0 1) + COMBO(bn_unds, &kp UNDER, 29 30, 0 1) + COMBO(er_cbkt, &cbrkt, 3 4, 0 1) + COMBO(ui_brkt, &brkt, 7 8, 0 1) + COMBO(sl_plus, &kp PLUS, 14 21, 0 1) + COMBO(ei_bsls, &bsls_pipe, 3 8, 0 1) + COMBO(wo_mins, &kp MINUS, 2 9, 0 1) + COMBO(fj_capw, &caps_word, 16 19, 0 1) + COMBO(qp_clmk, &tog 1, 1 10, 0) + COMBO(qp_qwrt, &tog 0, 1 10, 1) }; }; diff --git a/revxlp/Kconfig.defconfig b/revxlp/Kconfig.defconfig index e59d563..c55aa0c 100644 --- a/revxlp/Kconfig.defconfig +++ b/revxlp/Kconfig.defconfig @@ -4,8 +4,4 @@ if SHIELD_REVXLP config ZMK_KEYBOARD_NAME default "revxlp" -if ZMK_BACKLIGHT -config LED_GPIO - default y -endif # ZMK_BACKLIGHT endif diff --git a/revxlp/revxlp.conf b/revxlp/revxlp.conf index 289f070..dfa521c 100644 --- a/revxlp/revxlp.conf +++ b/revxlp/revxlp.conf @@ -1,3 +1 @@ -# Uncomment the following lines to enable RGB underglow -# CONFIG_ZMK_RGB_UNDERGLOW=y -# CONFIG_WS2812_STRIP=y +CONFIG_ZMK_SLEEP=y diff --git a/revxlp/revxlp.overlay b/revxlp/revxlp.overlay index 9a526e9..c9a3600 100644 --- a/revxlp/revxlp.overlay +++ b/revxlp/revxlp.overlay @@ -24,15 +24,6 @@ chosen { zmk,kscan = &kscan0; zmk,matrix_transform = &default_transform; - zmk,backlight = &backlight; - }; - - backlight: backlight_leds { - compatible = "gpio-leds"; - led_mosfet { - gpios = <&xiao_d 7 GPIO_ACTIVE_LOW>; - label = "Backlight LED 0"; - }; }; default_transform: keymap_transform_0 { |