Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set cutom time intervals in PowerToys Awake #26794

Closed
Nick2bad4u opened this issue Jun 12, 2023 · 7 comments
Closed

Add ability to set cutom time intervals in PowerToys Awake #26794

Nick2bad4u opened this issue Jun 12, 2023 · 7 comments
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@Nick2bad4u
Copy link

Description of the new feature / enhancement

Instead of allowing 1/2 hour, 1 hour, and 2 hours. Allow us to set a custom time interval.

Scenario when this would be used?

Anything outside the 3 setting above. More or less time can be set.

Supporting information

No response

@Nick2bad4u Nick2bad4u added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Jun 12, 2023
@dend
Copy link
Collaborator

dend commented Jun 30, 2023

https://learn.microsoft.com/en-us/windows/powertoys/awake#command-line-interface-cli

The settings.json configuration file is located at %HomePath%\AppData\Local\Microsoft\PowerToys\Awake. "Keep awake temporarily" options can be adjusted by modifying the "customTrayTimes" value, an array consisting of name and duration (in seconds) to stay awake. For example: "customTrayTimes":{"8 hours":28800}.

@dend dend closed this as completed Jun 30, 2023
@Nick2bad4u
Copy link
Author

https://learn.microsoft.com/en-us/windows/powertoys/awake#command-line-interface-cli

The settings.json configuration file is located at %HomePath%\AppData\Local\Microsoft\PowerToys\Awake. "Keep awake temporarily" options can be adjusted by modifying the "customTrayTimes" value, an array consisting of name and duration (in seconds) to stay awake. For example: "customTrayTimes":{"8 hours":28800}.

Will there ever be a GUI to do this instead?

@dend
Copy link
Collaborator

dend commented Jul 3, 2023

@Nick2bad4u potentially, but nothing on the immediate radar yet since there was not a lot of demand for this feature.

@Nick2bad4u
Copy link
Author

Is it possible to add multiple times in the settings file?

@eisenpony
Copy link

From the docs

The settings.json configuration file is located at %HomePath%\AppData\Local\Microsoft\PowerToys\Awake. "Keep awake temporarily" options can be adjusted by modifying the "customTrayTimes" value, an array consisting of name and duration (in seconds) to stay awake. For example: "customTrayTimes":{"8 hours":28800}.

My experience is that customTrayTimes is an object, not an array. The example is correct.
Also, customTrayTimes replaces the default time intervals rather than adding to them.

@dmealo
Copy link

dmealo commented Jan 17, 2024

@Nick2bad4u, you can add multiple times in the settings.json file by comma-separating them like this:
"customTrayTimes": { "8 hours": 28800, "4 hours": 14400, "2 hours": 7200, "1 hour": 3600, "30 minutes": 1800 }

I tested this exact setting and it works great.

@Nicholas5511
Copy link

It would be excellent if the notification area Awake offered 8,4,2,1,0.5 hrs as default intervals (as above), in place of the existing 2,1,0.5 hrs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

5 participants