~ruther/zmk-config

2a34026c8f1cee83732933e1588864b7d6d060f4 — Rutherther 2 months ago 9a94ee4
feat: add USB and Bluetooth output controls
2 files changed, 11 insertions(+), 9 deletions(-)

M config/cradio.keymap
M config/splitkb_aurora_corne.keymap
M config/cradio.keymap => config/cradio.keymap +7 -6
@@ 4,6 4,7 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

// Home row mods macro
#define HRML(k1,k2,k3,k4) &hltl SYM k1  &hml LALT k2  &hml LSHFT k3  &hml LCTRL k4


@@ 299,14 300,14 @@ CZECH_CARET_MACRO(R)
        ctrl_layer {
            bindings = <
        //╭──────────┬──────────┬──────────┬──────────┬──────────╮   ╭──────────┬──────────┬──────────┬──────────┬──────────╮
        //│ RESET    │          │          │          │PROFILE 0 │   │          │          │          │          │  RESET   │
           &sys_reset  &trans     &trans   &bt BT_SEL 3 &bt BT_SEL 0   &trans     &trans     &trans     &trans    &sys_reset
        //│ RESET    │ USB      │          │          │PROFILE 0 │   │          │          │          │          │  RESET   │
           &sys_reset &out OUT_USB &trans  &bt BT_SEL 3 &bt BT_SEL 0   &trans     &trans     &trans     &trans    &sys_reset
        //├──────────┼──────────┼──────────┼──────────┼──────────┤   ├──────────┼──────────┼──────────┼──────────┼──────────┤
        //│BOOTLOADER│          │          │          │PROFILE 1 │   │          │          │          │          │BOOTLOADER│
          &bootloader  &trans     &trans   &bt BT_SEL 4 &bt BT_SEL 1   &trans     &trans     &trans     &trans    &bootloader
        //│BOOTLOADER│ BLE      │          │          │PROFILE 1 │   │          │          │          │          │BOOTLOADER│
          &bootloader &out OUT_BLE &trans  &bt BT_SEL 4 &bt BT_SEL 1   &trans     &trans     &trans     &trans    &bootloader
        //├──────────┼──────────┼──────────┼──────────┼──────────┤   ├──────────┼──────────┼──────────┼──────────┼──────────┤
        //│          │          │          │ CLEAR BT │PROFILE 2 │   │          │          │          │          │          │
          &bt BT_CLR   &trans     &trans   &trans       &bt BT_SEL 2   &trans     &trans     &trans     &trans     &trans
        //│          │OUT TOGGLE│          │ CLEAR BT │PROFILE 2 │   │          │          │          │          │          │
          &bt BT_CLR  &out OUT_TOG &trans  &trans       &bt BT_SEL 2   &trans     &trans     &trans     &trans     &trans
        //╰──────────┴──────────┴──────────┼──────────┼──────────┤   ├──────────┼──────────┼──────────┴──────────┴──────────╯
                                             &trans     &trans         &trans     &trans
        //                                 ╰──────────┴──────────╯   ╰──────────┴──────────╯

M config/splitkb_aurora_corne.keymap => config/splitkb_aurora_corne.keymap +4 -3
@@ 4,6 4,7 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

#define RIGHT_KEYS 6 7 8 9 10 11 18 19 20 21 22 23 30 31 32 33 34 35 39 40 41
#define LEFT_KEYS 0 1 2 3 4 5 12 13 14 15 16 17 24 25 26 27 28 29 36 37 38


@@ 319,11 320,11 @@ CZECH_CARET_MACRO(Z)
        control {
            bindings = <
        //╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮   ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
            &trans        &sys_reset    &trans        &trans        &bt BT_SEL 3  &bt BT_SEL 0       &trans        &trans        &trans        &trans        &trans        &sys_reset
            &trans        &sys_reset    &out OUT_USB  &trans        &bt BT_SEL 3  &bt BT_SEL 0       &trans        &trans        &trans        &trans        &trans        &sys_reset
        //├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤   ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
            &trans        &bootloader   &trans        &trans        &bt BT_SEL 4  &bt BT_SEL 1       &trans        &trans        &trans        &trans        &trans        &bootloader
            &trans        &bootloader   &out OUT_BLE  &trans        &bt BT_SEL 4  &bt BT_SEL 1       &trans        &trans        &trans        &trans        &trans        &bootloader
        //├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤   ├─────────────┼─────────────┼─────────────┼─────────────┼─────────────┼─────────────┤
            &trans        &bt BT_CLR    &trans        &trans        &trans        &bt BT_SEL 2       &trans        &trans        &trans        &trans        &trans        &trans
            &trans        &bt BT_CLR    &out OUT_TOG  &trans        &trans        &bt BT_SEL 2       &trans        &trans        &trans        &trans        &trans        &trans
        //╰─────────────┴─────────────┴─────────────┴─────────────┼─────────────┼─────────────┤   ├─────────────┼─────────────┼─────────────┴─────────────┴─────────────┴─────────────╯
                                                                    &trans        &trans        &trans            &to BASE      &to NOHOMODS  &to GAMES
        //                                                       ╰─────────────┴─────────────┴─────────────╯   ╰─────────────┴─────────────┴─────────────╯