Productivity

How to Stop Context Switching on Your Mac

Refocusing after an interruption takes far longer than the interruption itself. Define two or three work contexts, batch-launch each one as a group, and back them with Focus modes and Spaces.

ShortcutDock Team Updated 6 min read
Share
Illustration for How to Stop Context Switching on Your Mac

Key takeaways

  • Context switching is expensive because of the time it takes to rebuild your mental state afterwards, not because of the seconds the interruption itself lasts.
  • Two or three named contexts is enough for most people. More than that and you spend your energy maintaining the system instead of using it.
  • The practical fix on macOS has four parts: one group of apps per context, a Focus mode that silences the rest, a desktop Space to hold it, and a clean shutdown at the end of the block.
  • The free version of ShortcutDock includes one group, which is enough to set up your single most important context before deciding whether to pay for more.
  • This approach does not suit every job. If being interruptible is the work, batching will fight you rather than help you.

Context switching is the cost of jumping between unrelated apps and tasks. The fix on a Mac is structural rather than a matter of willpower: decide on two or three work contexts, launch each as a single group of apps, silence everything else with a Focus mode, and give each context its own desktop Space.

Here is how to build that in about twenty minutes, and where the approach genuinely does not apply.

What does context switching actually cost you?

The number people quote is 23 minutes, from research led by Gloria Mark at the University of California, Irvine, which measured how long workers took to return to a task after an interruption. Treat that as an illustration rather than a law: it varies hugely by person, by task and by how deep you were.

The shape of the finding is what matters. The interruption is cheap. The rebuild afterwards is expensive, because you are reconstructing everything you were holding in your head: which file, which branch, which paragraph, what you were about to do next. That reconstruction is what a batched workspace protects.

Your brain is also associative. Seeing a chat window pulls you into a responsive, shallow mode; seeing an editor pulls you into a focused one. Keeping both visible means holding one of those modes down by force all day, which is exactly the energy you wanted to spend on the work. The goal is workspace isolation: at any moment, only the tools for the current job are on screen.

Step 1: Name your contexts

Write down the modes of work you actually move between. For most people it collapses to three:

  1. Deep work. Writing, coding, designing, analysing. Usually an editor or canvas, one reference window, and nothing else.
  2. Communication. Mail, chat, calendar, meeting software. Shallow and reactive by design.
  3. Admin and utilities. Files, terminal, settings, invoicing, backups.

Resist the urge to define seven contexts. A system with three groups gets used; a system with seven becomes another thing to maintain, and you will quietly abandon it in a busy week.

Step 2: Launch each context as one group

The point of naming a context is being able to summon it in one action, without scanning a Dock or an Applications folder and finding three distractions on the way. Groups in ShortcutDock do that: open the panel from the menu bar or your global hotkey, create a group, drag in the apps that belong to it, and launching the group opens all of them together.

Sensible starting groups:

  • Deep Work: your editor or design tool, plus one browser for reference. Nothing that produces notifications.
  • Comms: Mail, chat, calendar. Everything that does produce notifications, kept together deliberately.
  • Admin: Terminal, Finder, whatever handles invoices and files.

Worth knowing before you plan around it: the free version of ShortcutDock includes one group, five favourites and eight app shortcuts. That is enough to build your most valuable context, usually Deep Work, and see whether the habit sticks. More groups need Pro, which is a one-time payment rather than a subscription. Our tutorial on organising Mac apps with groups covers the mechanics in detail.

If you would rather not add software at all, you can approximate this with a macOS Shortcut that opens several apps, or by saving a set of apps into a folder in the Dock. Both work. Neither is as quick to change when the context evolves, which it will.

Step 3: Silence the rest with a Focus mode

Launching the right apps is undone the moment a banner slides in from an app you deliberately left closed. Open System Settings, then Focus, and add a Focus named after each context.

  • Under Allowed Notifications, add only the people and apps that genuinely cannot wait.
  • Leave Time Sensitive Notifications on unless you have a strong reason. It is the safety valve that stops a Focus mode from swallowing something urgent.
  • Focus Filters go further: a filter can switch Safari to a specific profile, limit Mail to one account, or restrict Calendar to one calendar when the Focus turns on.
  • Set a Schedule can turn the Focus on by time, by location, or when a specific app opens.

The honest trade-off: a Focus mode that is too strict gets switched off in a panic the first time you miss something, and then never switched back on. Start permissive. Tighten it after a week of knowing what you actually missed.

Step 4: Give each context a Space

Desktop Spaces give a context somewhere to live, so switching is a gesture rather than a rearrangement.

  1. Press Control + ↑ for Mission Control, then click the + at the top right to add a Space.
  2. Move between Spaces with Control + ← and Control + →, or a four-finger swipe.
  3. To pin an app to a Space, right-click its Dock icon while it is running, then Options, then Assign To, then This Desktop.
  4. If you use two displays, check Displays have separate Spaces in System Settings, then Desktop and Dock, because it changes this behaviour completely.

One caveat if you have hidden the Dock, which many people reading this will have: assigning an app to a Space needs the Dock icon, so reveal the Dock briefly with Option + ⌘ + D, assign, and hide it again. The reasoning behind working without a Dock is in why I hide my Mac Dock.

Step 5: End the block cleanly

Closing a context matters as much as opening one. Two keystrokes do most of it:

  • Option + ⌘ + H hides everything except the app you are in. The fastest way to recover a screen that has drifted.
  • ⌘ + Q quits the app in front. Use it on chat and mail at the end of a block, not just when you shut down.

Pin the two or three apps you reach for constantly to the Favourites bar so that returning to a context is one click rather than a hunt. Our Favourites bar power user guide covers how to keep that row short enough to stay useful, and there are more keyboard-level time savers in our list of essential macOS keyboard shortcuts.

When this advice does not apply

Batching is not universal advice, and it is worth being straight about that.

  • If interruption is the job. Support, on-call rotations, sales, anyone whose value is being reachable. Batching your comms into two windows a day makes you worse at that role, not better.
  • If you manage people. Managers who go dark for four hours push their unavailability onto everyone waiting on them. Shorter blocks with a clear signal about when you are back tend to work better.
  • On a small screen. Spaces on a 13-inch laptop with no external display can add navigation overhead rather than remove it. Try groups and Focus modes first and skip Step 4.
  • If you only use two apps. There is nothing to isolate. Do not build a system for a problem you do not have.

Set it up in one sitting

  1. Write down your two or three contexts and the apps in each.
  2. Build a group for the context you lose the most time to.
  3. Create a matching Focus mode with a generous allow list.
  4. Add one extra Space and assign that context's apps to it.
  5. Run it for a week, then change exactly one thing.

The system that survives is the small one you adjust, not the elaborate one you build in an afternoon. If you want the wider version, our Mac productivity setup for 2026 puts these pieces alongside the rest of a working configuration.

Frequently asked questions

How long does it take to refocus after being interrupted?

The most cited figure comes from research led by Gloria Mark at the University of California, Irvine, which found people took around 23 minutes to return to the original task after an interruption. The number varies enormously by person and by task. The useful takeaway is not the exact figure but the shape of it: the recovery costs far more than the interruption.

Is it better to quit apps or just hide them?

Hide them for anything you will return to within the hour, and quit them at the end of a work block. Hiding with Option, Command and H clears the screen instantly and costs nothing. Quitting matters for apps that keep pulling at you, because a running chat app still delivers badges and still uses network and battery.

Does having lots of apps open actually slow down a Mac?

Less than people assume. macOS compresses memory and swaps aggressively, so idle apps mostly sit out of the way. The real costs are attention and the apps that are genuinely busy in the background, syncing, indexing or polling. Open Activity Monitor and sort by CPU and Energy Impact to see which ones those are on your machine.

Can macOS switch Focus modes automatically?

Yes. In System Settings, Focus, open a Focus and use Set a Schedule to turn it on by time, by location, or when a particular app opens. Tying a Focus to your main work app is the version most people stick with, because it needs no discipline once it is configured.

Related guides

Get started

Put every app one click away

ShortcutDock runs from the macOS menu bar. Free basic version, no subscription, and no account required.