https://github.com/paralevel/toggle-software-update-badge
Hide or show the red Software Update badge on the macOS Dock
https://github.com/paralevel/toggle-software-update-badge
badge dock dock-icon macos software-update terminal terminal-command toggle
Last synced: 1 day ago
JSON representation
Hide or show the red Software Update badge on the macOS Dock
- Host: GitHub
- URL: https://github.com/paralevel/toggle-software-update-badge
- Owner: paralevel
- License: mit
- Created: 2026-04-12T11:32:59.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-31T07:15:37.000Z (12 days ago)
- Last Synced: 2026-05-31T09:11:42.240Z (12 days ago)
- Topics: badge, dock, dock-icon, macos, software-update, terminal, terminal-command, toggle
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Toggle the Software Update Dock badge
_System Requirements: macOS Tahoe 26_
Hide or show the red Software Update badge on the macOS Dock
Run the following command in Terminal:
defaults read com.apple.dock 1>/dev/null; plist=$HOME/Library/Preferences/com.apple.dock.plist; let i=1; while true; do unset test; test="$(plutil -extract persistent-apps.$i.tile-data.file-label raw $plist 2>/dev/null)"; if [[ $test = "System Settings" ]] && [[ -n $test ]]; then [[ $(plutil -extract persistent-apps.$i.tile-data.dock-extra raw $plist) = "true" ]] && state="NO" || state="YES"; plutil -replace persistent-apps.$i.tile-data.dock-extra -bool $state $plist; break; else if [ -z $test ]; then echo "Error: System Settings isn't a persistent Dock item"; return; fi; fi; let i++; done && killall Dock
Note: when you’ve had the badge disabled for a while and enable it again, it will take some time before the badge reappears, but you can force it to show by checking for software updates in System Settings