* For upcoming ZMK studio work, make a set of rich metadata available to provide a friendly name for a behavior, and allow super flexible descriptions of the parameters the behaviors take. * Add ability to validate a zmk_behavior_binding against the behavior metadata available.
28 lines
677 B
Text
28 lines
677 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ sk: sticky_key {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&kp>;
|
|
ignore-modifiers;
|
|
display-name = "Sticky Key";
|
|
};
|
|
/omit-if-no-ref/ sl: sticky_layer {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&mo>;
|
|
quick-release;
|
|
display-name = "Sticky Layer";
|
|
};
|
|
};
|
|
|
|
};
|
|
|