diff options
author | Okke Formsma <okke@formsma.nl> | 2020-12-26 14:46:56 +0100 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-01-22 19:27:18 -0500 |
commit | 5eeb310b2f0ccf1adf91b448573001559696a1d7 (patch) | |
tree | a3a711afe29b2df3dc781a8103ce58b21626433c /app/dts | |
parent | 58ad5d4e865341e736f4f80e6c3ec31d168fc509 (diff) |
feat(grave-escape): implement grave-escape
closes #85
Diffstat (limited to 'app/dts')
-rw-r--r-- | app/dts/behaviors.dtsi | 1 | ||||
-rw-r--r-- | app/dts/behaviors/gresc.dtsi | 19 | ||||
-rw-r--r-- | app/dts/bindings/behaviors/zmk,behavior-mod-morph.yaml | 16 |
3 files changed, 36 insertions, 0 deletions
diff --git a/app/dts/behaviors.dtsi b/app/dts/behaviors.dtsi index daa073f..4333cee 100644 --- a/app/dts/behaviors.dtsi +++ b/app/dts/behaviors.dtsi @@ -3,6 +3,7 @@ #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> diff --git a/app/dts/behaviors/gresc.dtsi b/app/dts/behaviors/gresc.dtsi new file mode 100644 index 0000000..2959388 --- /dev/null +++ b/app/dts/behaviors/gresc.dtsi @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include <dt-bindings/zmk/keys.h> + +/ { + behaviors { + /omit-if-no-ref/ gresc: grave_escape { + compatible = "zmk,behavior-mod-morph"; + label = "GRAVE_ESCAPE"; + #binding-cells = <0>; + bindings = <&kp ESC>, <&kp GRAVE>; + mods = <(MOD_LGUI|MOD_LSFT|MOD_RGUI|MOD_RSFT)>; + }; + }; +}; diff --git a/app/dts/bindings/behaviors/zmk,behavior-mod-morph.yaml b/app/dts/bindings/behaviors/zmk,behavior-mod-morph.yaml new file mode 100644 index 0000000..66b452a --- /dev/null +++ b/app/dts/bindings/behaviors/zmk,behavior-mod-morph.yaml @@ -0,0 +1,16 @@ +# Copyright (c) 2020 The ZMK Contributors +# SPDX-License-Identifier: MIT + +description: Keyboard Reset Behavior + +compatible: "zmk,behavior-mod-morph" + +include: zero_param.yaml + +properties: + bindings: + type: phandle-array + required: true + mods: + type: int + required: true |