From 17999b842f0c90e1ff59a07ce2eebfcbcd07f1dd Mon Sep 17 00:00:00 2001 From: Dustin Conlon Date: Fri, 2 Aug 2024 14:05:11 -0600 Subject: [PATCH] Updated keymap --- config/voltarium.conf | 4 ++++ config/voltarium.keymap | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/config/voltarium.conf b/config/voltarium.conf index d7001f9..f662fba 100644 --- a/config/voltarium.conf +++ b/config/voltarium.conf @@ -4,6 +4,10 @@ CONFIG_ZMK_SLEEP=y # Mouse CONFIG_ZMK_MOUSE=y +# Debounce +CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=3 +CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=3 + # Bluetooth CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y CONFIG_BT_CTLR_TX_PWR_PLUS_8=y diff --git a/config/voltarium.keymap b/config/voltarium.keymap index 114bde3..ed2ef45 100644 --- a/config/voltarium.keymap +++ b/config/voltarium.keymap @@ -5,6 +5,8 @@ #include #include +#define ZMK_MOUSE_DEFAULT_SCRL_VAL 35 + #define DEFAULT 0 #define QWERTY 1 #define NUM 2 @@ -63,6 +65,13 @@ mods = <(MOD_LSFT|MOD_RSFT)>; }; + nav_brace: navigation_brace { + compatible = "zmk,behavior-mod-morph"; + #binding-cells = <0>; + bindings = <&mo NAV>, <&nav_brace_tap>; + mods = <(MOD_LSFT|MOD_RSFT)>; + } + esc_ctl_num: tap_dance_0 { compatible = "zmk,behavior-tap-dance"; #binding-cells = <0>; @@ -74,7 +83,7 @@ compatible = "zmk,behavior-tap-dance"; #binding-cells = <0>; tapping-term-ms = <200>; - bindings = << NAV LEFT_BRACE>, <&kp RIGHT_BRACE>; + bindings = <&kp LEFT_BRACE>, <&kp RIGHT_BRACE>; }; paren_tap: tap_dance_2 { @@ -93,10 +102,10 @@ &kp TAB &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp MINUS &esc_ctl_num &kp A &kp R &kp S &kp T &kp D &kp H &kp N &kp E &kp I &kp O &kp APOS &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp PERIOD &kp FSLH &mt RALT RETURN - &mo BT &kp LALT &mo NUM &bspc_del &kp LGUI &nav_brace_tap &paren_tap &tog QWERTY &kp SPACE &mo NUM &none &kp RGUI - &kp C_PLAY_PAUSE &kp C_MUTE + &mo BT &kp LALT &mo NUM &bspc_del &kp LGUI &nav_brace &paren_tap &tog QWERTY &kp SPACE &mo NUM &none &kp RGUI + &kp C_PLAY_PAUSE &kp F1 >; - sensor-bindings = <&scroll_encoder>, <&scroll_encoder_new>; + sensor-bindings = <&scroll_encoder>, <&scroll_encoder_new>;&mo NUM }; qwerty_layer {