From 4ec881f5ef6f9ea51f664e8d42cb34ed191d7aa1 Mon Sep 17 00:00:00 2001 From: Dustin Conlon Date: Thu, 1 Aug 2024 13:04:52 -0600 Subject: [PATCH] Update keymap --- boards/shields/voltarium/voltarium.keymap | 61 ++++++++++++++++++- .../shields/voltarium/voltarium_left.overlay | 2 +- 2 files changed, 59 insertions(+), 4 deletions(-) diff --git a/boards/shields/voltarium/voltarium.keymap b/boards/shields/voltarium/voltarium.keymap index 9a895e9..b8ea14c 100644 --- a/boards/shields/voltarium/voltarium.keymap +++ b/boards/shields/voltarium/voltarium.keymap @@ -4,9 +4,26 @@ #include #define DEFAULT 0 -#define BT 1 +#define NUM 1 +#define BT 2 / { + combos { + compatible = "zmk,combos"; + }; + + macros { + alt_tab: alt_tab { + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings + = <¯o_press &kp LALT> + , <¯o_tap &kp TAB> + , <¯o_release &kp LALT> + ; + }; + }; + behaviors { rot_kp: sensor_rotate_kp { compatible = "zmk,behavior-sensor-rotate-var"; @@ -20,6 +37,34 @@ bindings = <&kp BACKSPACE>, <&kp DELETE>; mods = <(MOD_LSFT|MOD_RSFT)>; }; + + tab_num: tap_dance_0 { + compatible = "zmk,behavior-tap-dance"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp TAB>, <&tog NUM>; + }; + + brace_tap: tap_dance_1 { + compatible = "zmk,behavior-tap-dance"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp LEFT_BRACE>, <&kp RIGHT_BRACE>; + }; + + paren_tap: tap_dance_2 { + compatible = "zmk,behavior-tap-dance"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp LEFT_PARENTHESIS>, <&kp RIGHT_PARENTHESIS>; + }; + + alt_tap: tap_dance_3 { + compatible = "zmk,behavior-tap-dance"; + #binding-cells = <0>; + tapping-term-ms = <200>; + bindings = <&kp LEFT_PARENTHESIS>, <&kp RIGHT_PARENTHESIS>; + }; }; keymap { @@ -27,15 +72,25 @@ default_layer { bindings = < - &kp TAB &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp DEL + &tab_num &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI &kp MINUS &kp LC(ESC) &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 &kp RA(RETURN) - &mo BT &none &none &kp BACKSPACE &none &kp SPACE &kp DELETE &none &kp SPACE &none &none &none + &mo BT &alt_tab &none &bspc_del &kp LGUI &brace_tap &kp paren_tap &kp RGUI &kp SPACE &kp RIGHT_PARENTHESIS &none &kp RGUI &kp N0 &kp N5 >; sensor-bindings = <&rot_kp PG_UP PG_DN>; }; + numbers { + bindings = < + &kp N0 &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp MINUS &kp PLUS + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans + >; + }; + bluetooth { bindings = < &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR_ALL diff --git a/boards/shields/voltarium/voltarium_left.overlay b/boards/shields/voltarium/voltarium_left.overlay index cb9344e..d9c46bc 100644 --- a/boards/shields/voltarium/voltarium_left.overlay +++ b/boards/shields/voltarium/voltarium_left.overlay @@ -13,4 +13,4 @@ &left_encoder { status = "okay"; -}; \ No newline at end of file +}; \ No newline at end of file