Active applications only
Only show opened apps in Dock.
⚠️ Beware this command empties your Dock.
- Tested on macOS:
- Sonoma
- Monterey
- Parameter type: bool
Set to true
Only show active apps
bash
defaults write com.apple.dock "static-only" -bool "true" && killall Dock
Set to false
(default value)
Show apps pinned to the dock
bash
defaults write com.apple.dock "static-only" -bool "false" && killall Dock
Read current value
bash
defaults read com.apple.dock "static-only"
Reset to default value
bash
defaults delete com.apple.dock "static-only" && killall Dock