Skip to content

Instantly share code, notes, and snippets.

@frhd
Forked from ulasozguler/remove_sl_icon.sh
Created July 19, 2020 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frhd/7f6bbace55fb546ca5b48cda41c9652d to your computer and use it in GitHub Desktop.
Save frhd/7f6bbace55fb546ca5b48cda41c9652d to your computer and use it in GitHub Desktop.
Remove spotlight icon from menu bar.
cd /System/Library/CoreServices/Spotlight.app/Contents/MacOS
sudo cp Spotlight Spotlight.bak
sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight
cmp -l Spotlight Spotlight.bak
sudo codesign -f -s - Spotlight
sudo killall Spotlight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment