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>
11 lines
260 B
YAML
11 lines
260 B
YAML
# Copyright (c) 2022 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
description: Custom lock behavior variable definition
|
|
|
|
compatible: "zmk,behavior-custom-lock"
|
|
|
|
child-binding:
|
|
description: Key definitions for lock variable
|
|
|
|
include: two_param.yaml
|