Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Shortcut to start sleep timer with default duration?
« previous next »
  • Print
Pages: [1]

Author Topic: Shortcut to start sleep timer with default duration?  (Read 2630 times)

Offline iPodVT

  • Member
  • *
  • Posts: 467
Shortcut to start sleep timer with default duration?
« on: September 25, 2022, 03:20:35 PM »
I want to add an item to my shortcuts menu that will turn on the sleep timer for the amount of time that is currently set as the default duration.  But the 'data' field in the shortcut specification calls for "sleep X", where X is the number of minutes from 1 to 300 for the timer to run, or 0 to cancel the currently running timer.  Does anyone here know of a way I can specify that the shortcut should use the default duration?

FYI:  I tried "-1" but that was interpreted the same as "0" and cancelled the timer.  Then I tried a number greater than "300", specifically "600", but that started the timer at 10hrs, so I guess the "300" in the spec is not the real upper limit.  I also tried not specifying a number but that resulted in the shortcut being omitted from the shortcuts menu.

Thanks.
Logged

Offline chris_s

  • Developer
  • Member
  • *
  • Posts: 299
Re: Shortcut to start sleep timer with default duration?
« Reply #1 on: May 13, 2024, 03:48:35 PM »
A bit delayed, but this should be working now in the latest dev build, along with https://forums.rockbox.org/index.php/topic,54619.0.html . You can either omit X or use a negative number for it.
« Last Edit: May 13, 2024, 03:50:26 PM by chris_s »
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 467
Re: Shortcut to start sleep timer with default duration?
« Reply #2 on: May 13, 2024, 08:27:14 PM »
Quote from: chris_s on May 13, 2024, 03:48:35 PM
A bit delayed, but this should be working now in the latest dev build, along with https://forums.rockbox.org/index.php/topic,54619.0.html . You can either omit X or use a negative number for it.

I just now installed the latest dev build.  It's so great to have all of the many new features and fixes you guys have been adding recently.  Thank you!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  User Interface and Voice
| | |-+  Shortcut to start sleep timer with default duration?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.095 seconds with 20 queries.