Implement momentary layer + transparent behaviors
* Implement "momentary layer" behavior with `&mo` reference. * Implement basic "transparent" behavior with `&trans` reference.
This commit is contained in:
parent
223edf05ad
commit
93635077e6
8 changed files with 144 additions and 3 deletions
9
app/dts/behaviors/momentary_layer.dtsi
Normal file
9
app/dts/behaviors/momentary_layer.dtsi
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/ {
|
||||
behaviors {
|
||||
mo: behavior_momentary_layer {
|
||||
compatible = "zmk,behavior-momentary-layer";
|
||||
label = "MO";
|
||||
#binding-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
9
app/dts/behaviors/transparent.dtsi
Normal file
9
app/dts/behaviors/transparent.dtsi
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/ {
|
||||
behaviors {
|
||||
trans: behavior_transparent {
|
||||
compatible = "zmk,behavior-transparent";
|
||||
label = "TRANS";
|
||||
#binding-cells = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2020, Pete Johanson
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Momentary layer on press/release behavior
|
||||
|
||||
compatible: "zmk,behavior-momentary-layer"
|
||||
|
||||
include: one_param.yaml
|
||||
8
app/dts/bindings/behaviors/zmk,behavior-transparent.yaml
Normal file
8
app/dts/bindings/behaviors/zmk,behavior-transparent.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2020, Pete Johanson
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
description: Transparent Binding Behavior
|
||||
|
||||
compatible: "zmk,behavior-transparent"
|
||||
|
||||
include: zero_param.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue