forked from kofal.net/zmk
feat: Add the ability to keep/omit behaviors for a given build.
* Use defines to keep either all behaviors with omits, or selective behaviors with explicit kept behavior, before including `behavior.dtsi` in keymaps. * Default ZMK_BEHAVIORS_KEEP_ALL when building with the studio RPC endpoint snippet.
This commit is contained in:
committed by
Pete Johanson
parent
d77e400eb9
commit
fd28eab179
@@ -4,9 +4,14 @@
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/behaviors.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
/omit-if-no-ref/ tog: toggle_layer {
|
||||
#if ZMK_BEHAVIOR_OMIT(TOG)
|
||||
/omit-if-no-ref/
|
||||
#endif
|
||||
tog: toggle_layer {
|
||||
compatible = "zmk,behavior-toggle-layer";
|
||||
#binding-cells = <1>;
|
||||
display-name = "Toggle Layer";
|
||||
|
||||
Reference in New Issue
Block a user