r/coolgithubprojects • u/minosssh1 • 5h ago
DockFlow - Intuitive Dock & window behavior for macOS, with 0.0% idle CPU
galleryHey everyone! Coming from Windows/Linux (or just wanting less window clutter), two macOS habits always bugged me:
- Clicking an active app icon in the Dock doesn’t minimize it.
- Clicking the red close button on the last window leaves the app running in the background until you press `⌘Q`.
So I built DockFlow — a lightweight native Swift menu bar utility (`0.0%` idle CPU, event-driven, no polling) that fixes this cleanly:
- Dock Click to Minimize: Click an active app in the Dock to minimize it with the Genie effect; click again to restore.
- Quit on Last Window Close (`⌘Q`): Automatically quits apps when their last window closes (browsers still preserve your tabs/sessions).
- Exclusions Whitelist: Keep messengers and music players (`Telegram`, `Discord`, `Spotify`, `Music`, or any custom app) running in the background.
- Middle-Click on Dock: Open a new window (`⌘N`), quit (`⌘Q`), or hide (`⌘H`).
- Auto-Copy Screenshots & Recordings: New screenshots and screen recordings are automatically copied to your clipboard so you can `⌘V` them right away.
- Force Touch Haptics & Translucent Glass UI with built-in updates.
Free & open-source (MIT): https://github.com/minosssh1/DockFlow
Q&A: Happy to answer any questions in the comments — whether it’s about how Accessibility permissions work, battery/CPU impact, browser session handling, or feature ideas you’d like to see next!