A lightning-fast, open-source app workspace manager for macOS. Save and restore your entire app configuration in seconds.
docki replaces manual app switching with instant workspace presets.
I built this because I was tired of manually switching between different work contexts. Now I save each setup as a preset and switch instantly with a single command.
Perfect for:
- Switching between different work contexts
- Context-switching between projects
- Keeping your dock clean by only running what you need
Prerequisites: Zig 0.15.2+
git clone https://github.com/yourusername/docki.git
cd docki
zig build -Doptimize=ReleaseSafe
./zig-out/bin/docki --versionbrew install dockiCapture your currently running applications:
docki save work
docki save creative
docki save focusThis saves the names of all running apps to ~/.config/docki/presets/{name}.apps
Restore a saved workspace:
docki load workThis will:
- Launch any apps in the preset that aren't running
- Quit any apps that are running but not in the preset (except protected apps)
- Leave protected apps untouched (Finder, Terminal, iTerm2, ghostty, Warp, Alacritty)
docki listShows all saved presets:
work
creative
focus
docki --help # Show usage
docki --version # Show versionCreate ~/.config/docki/config.json to prevent certain apps from being quit:
{
"protected_apps": ["Finder", "Terminal", "iTerm2", "ghostty", "MyCustomApp"]
}Protected apps will never be automatically quit when loading a preset. App names are case-insensitive (you can write them in any case, they'll be matched regardless).
docki uses AppleScript (via osascript) to:
- Query running foreground applications
- Launch applications by name
- Quit applications gracefully
Presets are stored as simple text files with comma-separated app names.
Build and test locally:
zig build run -- save test_preset
zig build run -- list
zig build run -- load test_presetRun tests:
zig build testContributions welcome! This is a small, focused tool—keep it that way.
MIT License - see LICENSE file
This is an open-source alternative to DockFlow, built with Zig for speed and simplicity.