super-productivity icon indicating copy to clipboard operation
super-productivity copied to clipboard

Set focus mode on windows 10/11

Open nicola-lunghi opened this issue 1 year ago • 7 comments

Windows 10/11 has a focus mode. Would be great if sp can set it automatically when working on a task and unset it on break

Thanks for this amazing software!!!!!

nicola-lunghi avatar Jul 25 '22 08:07 nicola-lunghi

Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding!

github-actions[bot] avatar Jul 25 '22 08:07 github-actions[bot]

Pull Requests are welcome for this! (We probably should make it configurable as opt out)

johannesjo avatar Jul 29 '22 11:07 johannesjo

Apparently is not documented I found this https://github.com/bitdisaster/windows-focus-assist @riverar can you help?

nicola-lunghi avatar Jul 29 '22 16:07 nicola-lunghi

@nicola-lunghi How can I help? What do you need me to do?

riverar avatar Jul 29 '22 16:07 riverar

@nicola-lunghi Is there a module we can use to set Focus Assist in Windows? The module you gave seems to only read the status of Focus Assist.

bytrangle avatar Aug 04 '22 07:08 bytrangle

I've sent an email to @riverar waiting for a response on this :-) I'll keep you posted. The current API seems only to be able to query the focus state.

nicola-lunghi avatar Aug 05 '22 10:08 nicola-lunghi

IQuietHoursSettings has a property setting function entitled ActiveQuietMomentProfile that takes in a profile ID and should allow you to turn various profiles on/off. (https://withinrafael.com/2019/09/19/determine-if-your-app-is-in-a-focus-assist-profiles-priority-list/)

riverar avatar Aug 08 '22 06:08 riverar

This issue has not received any updates in 90 days. Please comment, if this still relevant!

github-actions[bot] avatar Dec 07 '22 02:12 github-actions[bot]