feat: Add more predefined behaviors
Adds predefined kt_on, kt_off, tog_on, tog_off, ktap behaviors.
This commit is contained in:
parent
ada1542940
commit
a05f5699dd
4 changed files with 61 additions and 10 deletions
21
app/dts/behaviors/key_tap.dtsi
Normal file
21
app/dts/behaviors/key_tap.dtsi
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2025 The ZMK Contributors
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/behaviors.h>
|
||||
|
||||
/ {
|
||||
behaviors {
|
||||
#if ZMK_BEHAVIOR_OMIT(KTAP)
|
||||
/omit-if-no-ref/
|
||||
#endif
|
||||
ktap: key_tap {
|
||||
compatible = "zmk,behavior-macro-one-param";
|
||||
#binding-cells = <1>;
|
||||
display-name = "Key Tap";
|
||||
bindings = <¯o_param_1to1>, <&kp MACRO_PLACEHOLDER>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue