Guide

Close All Apps: Keyboard Shortcut vs One Click

People search for a “close all apps” keyboard shortcut expecting one to exist. Short answer: neither macOS nor Windows ships one. Here’s what the operating systems actually give you, how close you can get with scripting, and when a dedicated button beats a shortcut.

What the OS actually gives you

macOS

  • Cmd+Q — quits the current app only.
  • Cmd+Tab then Q (holding Cmd) — quits apps one at a time from the switcher. The closest built-in thing to a loop.
  • Cmd+Option+Esc — the Force Quit dialog: pick one app, hard-kill it.

Windows

  • Alt+F4 — closes the active window only.
  • Ctrl+Shift+Esc — opens Task Manager; ending tasks is manual and forceful.
  • Win+D — hides everything (shows desktop). Nothing closes; it all comes back.

That last one matters: minimizing is not closing. The apps still hold memory, still play notification sounds, and still appear the moment you Alt+Tab during a screen share.

Linux

  • Most desktops bind Alt+F4 to close the focused window, same as Windows.
  • There is no close-all binding, but every major desktop lets you attach a custom command to a key — which makes Linux the easiest of the three to wire up. See the Linux guide for commands that are safe to bind.

Why no operating system ships one

It is not an oversight, and knowing the reason tells you what to expect from any tool that adds it. A close-everything key has to answer a question the OS cannot answer for you: what counts as an app?Your file manager, your clipboard tool, your VPN client, the thing drawing your desktop — all of them are processes owned by you, and a naive “close all” takes out the ones holding your session together.

So the shortcut does not exist because the safety filtering is the hard part, not the closing. Any tool that offers this is really offering you its allowlist, and that is the thing worth judging it on.

Building your own shortcut

On macOS you can wrap a quit-all AppleScript in Automator or the Shortcuts app and bind a hotkey — the script and its caveats are in our Mac guide. On Windows the equivalent is a PowerShell or AutoHotkey script around taskkill, where you maintain the exclusion list yourself — one wrong pattern and you’ve closed your clipboard manager or killed Explorer. Both are real options for people who enjoy maintaining scripts. Both break in small ways as the OS changes.

macOS: a Shortcuts recipe, step by step

  1. Open the Shortcuts app and create a new shortcut.
  2. Add the Run AppleScript action and paste the quit-all script from the Mac guide.
  3. Open the shortcut’s details pane and tick Use as Quick Action, then Services Menu.
  4. In System Settings → Keyboard → Keyboard Shortcuts → Services, find it and assign a key combination.

Pick something deliberately awkward. This is a destructive action and you do not want it next to a key you press by accident.

Windows: AutoHotkey

AutoHotkey v2, binding Ctrl+Alt+Q to a polite close of every windowed program:

^!q:: {
  for w in WinGetList()
    if WinGetTitle(w) != ""
      WinClose(w)
}

WinClose sends the same close message the X button does, so save prompts still appear. As with every DIY version, the exclusion list is yours to grow.

Shortcut vs button: the actual difference

A shortcut you build is invisible — you have to remember it exists, remember the binding, and trust the script under it. A tray button is visible — it’s sitting there when the meeting starts in 30 seconds and your desktop is chaos.

Captain Kill Switch is that button: one click in the menu bar or system tray, every app gets a clean close request, everything is gone within about two seconds, and system processes are protected by an allowlist on all three platforms (macOS, Windows, Linux). No script to maintain, free, auto-updates.

And if you did want the keystroke after all: it supports a global hotkey, so you can bind one without writing or maintaining the script underneath it. That is the honest answer to the original question — there is no built-in close-all shortcut on any desktop OS, but you can have one; you just have to install something that owns the allowlist for you.

Honest fine print:like any close-everything mechanism that doesn’t stop for dialogs, unsaved work closes with everything else. Save first — the button is for the moment after.

Bottom line

  • There is no built-in close-all shortcut on any desktop OS.
  • The built-in loops (Cmd-Tab+Q, Alt+F4) are fine for a few apps, slow for many.
  • DIY scripts work if you enjoy owning the edge cases.
  • If you do this often, put a real button in the tray — download it freeand the “shortcut” becomes one click.