From f631bfe5b4fb78d676a37583bb4aa8f3d2e3bf1b Mon Sep 17 00:00:00 2001
From: Christian Soffke <christian.soffke@gmail.com>
Date: Sat, 11 May 2024 18:18:51 +0200
Subject: shortcuts: sleep timer: allow omitting number of minutes

'sleep' can now appear in the data field of a 'time' shortcut
without being followed by a number, allowing you to stop a
running timer, or to start a new one using the default sleep
timer duration (the duration setting can already be added to
the Shortcuts menu as well).

Also see here:
https://forums.rockbox.org/index.php/topic,54312.msg250940.html

Change-Id: I9d0e62ef1b6187c35133067349729a4d94273c7a
---
 manual/main_menu/main.tex | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'manual/main_menu/main.tex')

diff --git a/manual/main_menu/main.tex b/manual/main_menu/main.tex
index fced43ab98..92ff26b2ec 100644
--- a/manual/main_menu/main.tex
+++ b/manual/main_menu/main.tex
@@ -325,8 +325,10 @@ Available types are:
 \item[separator] \config{data} is ignored; \config{name} can be used to display text,
   or left blank to make the list more accessible with visual gaps
 \item[time] \config{data} needs to be \opt{rtc}{either ``talk'' to talk the time, or }``sleep X''
-  where X is the number of minutes to run the sleep timer for (0 to disable). \config{name}
-  is required for this shortcut type.
+  where X can, optionally, be the number of minutes to run the sleep timer for (0 to disable).
+  If ``sleep'' is not followed by a number, the sleep timer can be stopped, if running,
+  or started using the default duration; \config{name} will be ignored in that case. Otherwise
+  \config{name} is required for this shortcut type.
 \item[shutdown] \config{data} is ignored; \config{name} can be used to display text
 \end{description}
 
-- 
cgit v1.2.3

