Implement momentary layer + transparent behaviors

* Implement "momentary layer" behavior with `&mo`
  reference.
* Implement basic "transparent" behavior with `&trans`
  reference.
This commit is contained in:
Pete Johanson
2020-06-21 21:56:49 -04:00
parent 223edf05ad
commit 93635077e6
8 changed files with 144 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
/ {
behaviors {
mo: behavior_momentary_layer {
compatible = "zmk,behavior-momentary-layer";
label = "MO";
#binding-cells = <1>;
};
};
};

View File

@@ -0,0 +1,9 @@
/ {
behaviors {
trans: behavior_transparent {
compatible = "zmk,behavior-transparent";
label = "TRANS";
#binding-cells = <0>;
};
};
};

View File

@@ -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

View 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