diff --git a/config/sofle.keymap b/config/sofle.keymap index cece0cd..d43c99c 100644 --- a/config/sofle.keymap +++ b/config/sofle.keymap @@ -5,6 +5,7 @@ */ #include +#include #include #define BASE 0 @@ -81,6 +82,16 @@ flavor = "tap-preferred"; tapping-term-ms = <300>; }; + + hbt: hbt { + compatible = "zmk,behavior-hold-tap"; + label = "HBT"; + bindings = <&bt>, <&none>; + + #binding-cells = <2>; + flavor = "tap-preferred"; + tapping-term-ms = <300>; + }; }; combos { @@ -152,11 +163,11 @@ mod_a { bindings = < -&kp EQUAL &kp LBKT &kp RBKT &trans &trans &trans &trans &trans &trans &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp EQUAL -&kp NON_US_HASH &none &none &none &none &none &mt F7 KP_NUMBER_7 &mt F8 KP_NUMBER_8 &mt F9 KP_NUMBER_9 &kp KP_ASTERISK &kp KP_DIVIDE &kp NON_US_HASH -&kp DELETE &kp INS &kp HOME &kp UP &kp END &kp PG_UP &mt F4 KP_NUMBER_4 &mt F5 KP_NUMBER_5 &mt F6 KP_NUMBER_6 &kp KP_PLUS &kp KP_MINUS &kp BACKSPACE -&kp LSHIFT &kp NUBS &kp LEFT &kp DOWN &kp RIGHT &kp PAGE_DOWN &trans &trans &mt F1 KP_NUMBER_1 &mt F2 KP_NUMBER_2 &mt F3 KP_NUMBER_3 &kp KP_DOT &kp KP_EQUAL &kp RSHIFT - &trans &trans &trans &trans &trans &trans &trans &kp KP_NUMBER_0 &trans &trans +&kp EQUAL &kp LBKT &kp RBKT &trans &trans &trans &trans &trans &trans &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp EQUAL +&kp NON_US_HASH &hbt BT_DISC 0 0 &hbt BT_PRV 0 &hbt BT_CLR 0 &hbt BT_NXT 0 &hbt BT_SEL 0 0 &mt F7 KP_NUMBER_7 &mt F8 KP_NUMBER_8 &mt F9 KP_NUMBER_9 &kp KP_ASTERISK &kp KP_DIVIDE &kp NON_US_HASH +&kp DELETE &kp INS &kp HOME &kp UP &kp END &kp PG_UP &mt F4 KP_NUMBER_4 &mt F5 KP_NUMBER_5 &mt F6 KP_NUMBER_6 &kp KP_PLUS &kp KP_MINUS &kp BACKSPACE +&kp LSHIFT &kp NUBS &kp LEFT &kp DOWN &kp RIGHT &kp PAGE_DOWN &trans &trans &mt F1 KP_NUMBER_1 &mt F2 KP_NUMBER_2 &mt F3 KP_NUMBER_3 &kp KP_DOT &kp KP_EQUAL &kp RSHIFT + &trans &trans &trans &trans &trans &trans &trans &kp KP_NUMBER_0 &trans &trans >; label = "Mod A"; @@ -174,11 +185,11 @@ // | | | | | | | | | | | | bindings = < -&kp EQUAL &kp LEFT_BRACKET &kp RIGHT_BRACKET &trans &trans &trans &trans &trans &trans &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp EQUAL -&kp KP_NUMLOCK &kp KP_DIVIDE &kp KP_MULTIPLY &mt F7 KP_NUMBER_7 &mt F8 KP_NUMBER_8 &mt F9 KP_NUMBER_9 &none &none &none &none &none &kp NON_US_HASH -&kp BACKSPACE &kp KP_SUBTRACT &kp KP_PLUS &mt F4 KP_NUMBER_4 &mt F5 KP_NUMBER_5 &mt F6 KP_NUMBER_6 &kp PG_UP &kp HOME &kp UP &kp END &kp INS &kp DELETE -&kp LEFT_SHIFT &kp KP_EQUAL &kp KP_DOT &mt F1 KP_NUMBER_1 &mt F2 KP_NUMBER_2 &mt F3 KP_NUMBER_3 &trans &trans &kp PAGE_DOWN &kp LEFT &kp DOWN &kp RIGHT &kp NUBS &kp RIGHT_SHIFT - &trans &trans &kp KP_N0 &tog 3 &trans &trans &tog 3 &trans &trans &trans +&kp EQUAL &kp LEFT_BRACKET &kp RIGHT_BRACKET &trans &trans &trans &trans &trans &trans &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp EQUAL +&kp KP_NUMLOCK &kp KP_DIVIDE &kp KP_MULTIPLY &mt F7 KP_NUMBER_7 &mt F8 KP_NUMBER_8 &mt F9 KP_NUMBER_9 &hbt BT_SEL 0 0 &hbt BT_PRV 0 &hbt BT_CLR 0 &hbt BT_NXT 0 &hbt BT_DISC 0 0 &kp NON_US_HASH +&kp BACKSPACE &kp KP_SUBTRACT &kp KP_PLUS &mt F4 KP_NUMBER_4 &mt F5 KP_NUMBER_5 &mt F6 KP_NUMBER_6 &kp PG_UP &kp HOME &kp UP &kp END &kp INS &kp DELETE +&kp LEFT_SHIFT &kp KP_EQUAL &kp KP_DOT &mt F1 KP_NUMBER_1 &mt F2 KP_NUMBER_2 &mt F3 KP_NUMBER_3 &trans &trans &kp PAGE_DOWN &kp LEFT &kp DOWN &kp RIGHT &kp NUBS &kp RIGHT_SHIFT + &trans &trans &kp KP_N0 &tog 3 &trans &trans &tog 3 &trans &trans &trans >; };