nhatnam7kz/TrueClose
About
TrueClose – A lightweight macOS menu bar utility that automatically quits apps when their last window is closed like Windows OS. Free & Open-source SwiftQuit alternative.
Productivity & AutomationWhat you can do
- Automatically quits apps that have no windows left
- Configurable delay before quitting
- Blacklist (never quit these apps) or Whitelist (only quit these apps)
- Pause / Resume from the menu bar
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalTrueClose — Quit Mac Apps When Their Last Window Closes
A tiny, free menu bar app for macOS that makes closing the last window really quit the app, like on Windows. Stop apps from lingering in the background and free up memory automatically.
Note: On macOS, clicking the red ✕ on an app's last window closes the window but keeps the app running. TrueClose quits it for you, so the Dock stays clean and idle apps stop using your RAM. Grab the latest build from the releases page.
Tip: Some apps should keep running with no windows (music players, menu bar tools). Add them to the Blacklist in Settings and TrueClose will leave them alone.
Features
- Automatically quits apps that have no windows left
- Configurable delay before quitting
- Blacklist (never quit these apps) or Whitelist (only quit these apps)
- Pause / Resume from the menu bar
- Launch at login
- Option to hide the menu bar icon
Install
Homebrew (recommended — updates with brew upgrade):
brew install --cask nhatnam7kz/tap/trueclose
Manual:
- Download
TrueClose.pkgorTrueClose.dmgfrom the latest release. .pkg: double-click and follow the installer..dmg: open it and dragTrueClose.appinto/Applications.- Clear the quarantine flag — TrueClose is not signed with a paid Apple certificate, so Gatekeeper would otherwise block the first launch:
xattr -d com.apple.quarantine /Applications/TrueClose.app
Prefer not to use Terminal? Right-click TrueClose.app → Open → Open. If macOS still refuses, go to System Settings → Privacy & Security and click Open Anyway.
Then open TrueClose and grant Accessibility in System Settings (see Permissions).
Permissions
TrueClose needs Accessibility permission to see how many windows an app has open.
On first launch, click "Open System Settings to grant permission", then turn on TrueClose in System Settings → Privacy & Security → Accessibility.
Usage
Click the TrueClose icon in the menu bar to Pause/Resume, open Settings, or Quit.
| Settings tab | What it does |
|---|---|
| General | Pause, launch at login, delay before quitting, hide the menu bar icon |
| Rules | Choose apps to exclude (Blacklist) or include (Whitelist) |
| Accessibility | Shows permission status |
Note: If you hide the menu bar icon, you can reopen Settings anytime with the ⌥⇧A shortcut.
Build from source
git clone https://github.com/nhatnam7kz/TrueClose.git
cd TrueClose
./build.sh
This builds TrueClose.app, signs it, and packages both TrueClose.dmg and TrueClose.pkg. No extra steps needed.
Uninstall
Homebrew:
brew uninstall --cask nhatnam7kz/tap/trueclose
Manual: quit TrueClose and delete it from /Applications.
To also remove its settings:
defaults delete com.trueclose.app
Gallery
Close the last window, the app quits
Close an app's last window with the red button. After the short delay you set, the app quits completely and disappears from the Dock instead of staying open in the background. |
Simple settings
Pause TrueClose, set the delay before quitting, turn on launch at login, and hide the menu bar icon. The Rules tab manages your Blacklist / Whitelist. |
Contributing
Contributions are welcome! If you find an app that doesn't quit (or quits when it shouldn't), please open an issue with the app's name.
License
MIT — TrueClose is free and open-source.
Explore related projects
Loading…