Skip to content

Instantly share code, notes, and snippets.

@sverweij
Created January 5, 2014 17:20
Show Gist options
  • Save sverweij/8270995 to your computer and use it in GitHub Desktop.
Save sverweij/8270995 to your computer and use it in GitHub Desktop.
Permanently kill MacOSX notification center
#!/bin/sh
# this one actually works great
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
killall NotificationCenter
# An alternative method, requiring root permission:
# http://www.maclife.com/article/howtos/how_disable_notification_center_mountain_lion
# requiring root permission:
#
# sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool false
# killall NotificationCenter
# switching it on again is the reverse, of course ...
# sudo defaults write /System/Library/LaunchAgents/com.apple.notificationcenterui KeepAlive -bool true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment