Previously the definition was copied almost 1:1 from the `none` behavior in order to set up the important files and have a small running, but featureless sample. This change introduces a way to actually configure the custom lock behavior, using the following syntax: ``` behaviors { dead_lock_prevent { compatible = "zmk,behavior-custom-lock"; // to define a key dead: dead_key { #binding-cells = <2>; bindings = <&kp>, <&kp>; } // or to define a macro deadm: dead_macro { #binding-cells = <2>; bindings = <¯o>, <&kp>; } } } ``` Additionally, there's now no standard definition flying around (deletion of `dts/behaviors/custom_lock.dtsi`) Signed-off-by: Sophie Tyalie <dev@flowerpot.me>
21 lines
767 B
Text
21 lines
767 B
Text
#include <behaviors/key_press.dtsi>
|
|
#include <behaviors/key_toggle.dtsi>
|
|
#include <behaviors/transparent.dtsi>
|
|
#include <behaviors/none.dtsi>
|
|
#include <behaviors/mod_tap.dtsi>
|
|
#include <behaviors/layer_tap.dtsi>
|
|
#include <behaviors/gresc.dtsi>
|
|
#include <behaviors/sticky_key.dtsi>
|
|
#include <behaviors/momentary_layer.dtsi>
|
|
#include <behaviors/toggle_layer.dtsi>
|
|
#include <behaviors/to_layer.dtsi>
|
|
#include <behaviors/reset.dtsi>
|
|
#include <behaviors/sensor_rotate_key_press.dtsi>
|
|
#include <behaviors/rgb_underglow.dtsi>
|
|
#include <behaviors/bluetooth.dtsi>
|
|
#include <behaviors/ext_power.dtsi>
|
|
#include <behaviors/outputs.dtsi>
|
|
#include <behaviors/caps_word.dtsi>
|
|
#include <behaviors/key_repeat.dtsi>
|
|
#include <behaviors/backlight.dtsi>
|
|
#include <behaviors/macros.dtsi>
|