How to turn on a focus mode on Windows 11 with one key
Make a KeyRoutines routine with a Hotkey trigger, a Toggle step and an If on Remembered value is. Turning on runs Close app, Mute an app, Quiet mode and Show desktop with your editor kept; turning off unmutes, ends Quiet mode and reopens the apps with Open app.
Steps
- 1
Add a Hotkey trigger and Toggle
Pick a chord such as Ctrl+Alt+F, then add Toggle for a value named focus.
- 2
Branch on the value
Add an If with Remembered value is focus on.
- 3
Focus on
In the If branch, add Close app for Discord and Steam, Mute an app for Slack, Quiet mode on, and Show desktop with your editor in the apps to leave alone. End with Show banner "Focus on".
- 4
Focus off
In the Else branch, add Mute an app to unmute Slack, Quiet mode off, Open app for Discord, and Show banner "Focus off".
Tips
- Quiet mode quiets KeyRoutines' own popups and scheduled routines; turn on Windows' Do not disturb for other apps' notifications.
- Need a timer as well? See the focus timer how-to, which ends the block by itself.
Questions
- Can it put my windows back exactly?
- Within one run, yes, with Restore layout. Across two presses, a KeyRoutines Pro Mode remembers and puts back what it changed.
- Is it free?
- Yes. Every block here is in the free version.