b84d29c384
* Use lesser-known DT features to skip behaviors not referenced in the user keymap * Update the behaviors to skip code if no nodes found. * Remove some empty config/data structs where unused in behaviors.
27 lines
522 B
Text
27 lines
522 B
Text
/*
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/ {
|
|
behaviors {
|
|
/omit-if-no-ref/ sk: behavior_sticky_key {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
label = "STICKY_KEY";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&kp>;
|
|
};
|
|
/omit-if-no-ref/ sl: behavior_sticky_layer {
|
|
compatible = "zmk,behavior-sticky-key";
|
|
label = "STICKY_LAYER";
|
|
#binding-cells = <1>;
|
|
release-after-ms = <1000>;
|
|
bindings = <&mo>;
|
|
quick-release;
|
|
};
|
|
};
|
|
|
|
};
|
|
|