From cf19a5fdfa36d5901f83310425e479ea46c43899 Mon Sep 17 00:00:00 2001 From: German Gutierrez Date: Thu, 9 May 2024 12:20:59 +0200 Subject: [PATCH 1/4] Update soft-off.md Adding Split Peripheral Off On Press --- docs/docs/behaviors/soft-off.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/docs/behaviors/soft-off.md b/docs/docs/behaviors/soft-off.md index 14b5f36a..e6d36737 100644 --- a/docs/docs/behaviors/soft-off.md +++ b/docs/docs/behaviors/soft-off.md @@ -38,3 +38,20 @@ By default, the keyboard will be turned off as soon as the key bound to the beha }; }; ``` + +#### Split Peripheral Off On Press + +By default on split keyboards, `split-peripheral-off-on-press` is enabled. This means that while you hold down the key in the central (usually the left one), the peripheral (usually the right one) will be immediately off. +If you want to disable this functionality, you can create a behavior, for example: + +``` +/ { + behaviors { + soff: soft_off { + compatible = "zmk,behavior-soft-off"; + #binding-cells = <0>;s + hold-time-ms = <5000>; // Only turn off if the key is held for 5 seconds or longer. + }; + }; +} +``` From 38860ad9ada388e1addcd60f9c53a17ae67eb6d9 Mon Sep 17 00:00:00 2001 From: GermanG Date: Thu, 9 May 2024 13:38:09 +0200 Subject: [PATCH 2/4] running prettier --- docs/docs/behaviors/soft-off.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/behaviors/soft-off.md b/docs/docs/behaviors/soft-off.md index e6d36737..6069b5f8 100644 --- a/docs/docs/behaviors/soft-off.md +++ b/docs/docs/behaviors/soft-off.md @@ -49,7 +49,7 @@ If you want to disable this functionality, you can create a behavior, for exampl behaviors { soff: soft_off { compatible = "zmk,behavior-soft-off"; - #binding-cells = <0>;s + #binding-cells = <0>;s hold-time-ms = <5000>; // Only turn off if the key is held for 5 seconds or longer. }; }; From 78eb97026721e03e54ddbbfb88bd5c4eadaacf74 Mon Sep 17 00:00:00 2001 From: German Gutierrez Date: Fri, 12 Jul 2024 14:04:19 +0200 Subject: [PATCH 3/4] Update docs/docs/behaviors/soft-off.md Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- docs/docs/behaviors/soft-off.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/docs/behaviors/soft-off.md b/docs/docs/behaviors/soft-off.md index 6069b5f8..c11a2869 100644 --- a/docs/docs/behaviors/soft-off.md +++ b/docs/docs/behaviors/soft-off.md @@ -42,16 +42,10 @@ By default, the keyboard will be turned off as soon as the key bound to the beha #### Split Peripheral Off On Press By default on split keyboards, `split-peripheral-off-on-press` is enabled. This means that while you hold down the key in the central (usually the left one), the peripheral (usually the right one) will be immediately off. -If you want to disable this functionality, you can create a behavior, for example: +If you want to disable this functionality, you can modify the behavior: -``` -/ { - behaviors { - soff: soft_off { - compatible = "zmk,behavior-soft-off"; - #binding-cells = <0>;s - hold-time-ms = <5000>; // Only turn off if the key is held for 5 seconds or longer. - }; - }; -} +```dts +&soft_off { + /delete-property/ split-peripheral-off-on-press; +}; ``` From f29729ebfe254fd2590eb97e2673a13b2512b052 Mon Sep 17 00:00:00 2001 From: German Gutierrez Date: Fri, 12 Jul 2024 14:04:37 +0200 Subject: [PATCH 4/4] Update docs/docs/behaviors/soft-off.md Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- docs/docs/behaviors/soft-off.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/behaviors/soft-off.md b/docs/docs/behaviors/soft-off.md index c11a2869..a02dcad3 100644 --- a/docs/docs/behaviors/soft-off.md +++ b/docs/docs/behaviors/soft-off.md @@ -41,7 +41,7 @@ By default, the keyboard will be turned off as soon as the key bound to the beha #### Split Peripheral Off On Press -By default on split keyboards, `split-peripheral-off-on-press` is enabled. This means that while you hold down the key in the central (usually the left one), the peripheral (usually the right one) will be immediately off. +`split-peripheral-off-on-press` is enabled by default on split keyboards. This means the peripheral will transition to soft-off mode as soon as the key is pressed, regardless of what `hold-time-ms` is set to. If you want to disable this functionality, you can modify the behavior: ```dts