An open API service indexing awesome lists of open source software.

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

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