From ea0538ffba7f72047588d877cbcf1feca0fd8254 Mon Sep 17 00:00:00 2001 From: urob <978080+urob@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:54:54 -0500 Subject: [PATCH] Add leader sequences for system and output control --- config/base.keymap | 1 + config/leader.dtsi | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/config/base.keymap b/config/base.keymap index 9923019..59d6a2d 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -3,6 +3,7 @@ #include #ifdef CONFIG_WIRELESS #include + #include #define _BT_SEL_KEYS_ &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_CLR #else #define _BT_SEL_KEYS_ &trans &trans &trans &trans &trans diff --git a/config/leader.dtsi b/config/leader.dtsi index 7fbd0a1..2f6892d 100644 --- a/config/leader.dtsi +++ b/config/leader.dtsi @@ -5,6 +5,7 @@ leader: leader { \ compatible = "zmk,behavior-leader-key"; \ #binding-cells = <0>; \ + ignore-keys = ; \ leader_sequence_ ## name { \ bindings = ; \ sequence = ; \ @@ -44,3 +45,12 @@ ZMK_LEADER_SEQUENCE(el_phi, &el_phi, E F) // ϕ ZMK_LEADER_SEQUENCE(el_chi, &el_chi, E C) // χ ZMK_LEADER_SEQUENCE(el_psi, &el_psi, E Y) // ψ ZMK_LEADER_SEQUENCE(el_omega, &el_omega, E W) // ω + +// BLE and USB +#ifdef CONFIG_WIRELESS +ZMK_LEADER_SEQUENCE(usb, &out OUT_USB, U S B) +ZMK_LEADER_SEQUENCE(ble, &out OUT_BLE, B L E) +#endif // CONFIG_WIRELESS +ZMK_LEADER_SEQUENCE(reset, &sys_reset, R E S E T) +ZMK_LEADER_SEQUENCE(boot, &bootloader, B O O T) +