zmk/app/dts/behaviors
Sophie Tyalie dadf1e611f Behavior: Change way lock keys are defined in dts
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 = <&macro>, <&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>
2022-11-17 13:14:57 +01:00
..
backlight.dtsi refactor(backlight): code cleanup 2022-02-05 23:40:18 -05:00
bluetooth.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
caps_word.dtsi feat(behaviors): Add DEL/BSPC to continue list. 2022-06-04 01:38:42 -04:00
ext_power.dtsi fix: Ensure power and underglow behaviors built. 2022-01-31 23:03:34 -05:00
gresc.dtsi feat(grave-escape): implement grave-escape 2021-01-22 19:27:18 -05:00
key_press.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
key_repeat.dtsi feat(behaviors): &key_repeat behavior + tests. 2022-01-30 22:47:34 -05:00
key_toggle.dtsi feat(behavior): Add key toggle 2022-06-03 00:04:41 -04:00
layer_tap.dtsi style(hold-tap)!: Write hold-tap params with dashes 2021-02-10 07:55:12 -05:00
macros.dtsi feat(behaviors): Add macro support. 2022-03-23 23:42:54 -04:00
mod_tap.dtsi style(hold-tap)!: Write hold-tap params with dashes 2021-02-10 07:55:12 -05:00
momentary_layer.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
none.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
outputs.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
reset.dtsi refactor(behaviors): Always add reset behaviors. 2022-01-31 23:03:34 -05:00
rgb_underglow.dtsi fix: Ensure power and underglow behaviors built. 2022-01-31 23:03:34 -05:00
sensor_rotate_key_press.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
sticky_key.dtsi Behaviors: Add 'ignore-modifiers' option to sticky keys 2022-02-07 14:45:07 -05:00
to_layer.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
toggle_layer.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00
transparent.dtsi refactor(core): Use /omit-if-no-ref/ for behaviors. 2021-02-04 00:52:25 -05:00