Skip to content

Instantly share code, notes, and snippets.

@fnky
Last active June 21, 2023 16:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fnky/e35d3547f0470d86b7bd to your computer and use it in GitHub Desktop.
Save fnky/e35d3547f0470d86b7bd to your computer and use it in GitHub Desktop.
Activate the power chime sound effect. For MacBook Pro and MacBook Air

Power Chime

To activate the sound effect

$ defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app &

Do deactivate it, simply change the ChimeOnAllHardware boolean to false.

$ defaults write com.apple.PowerChime ChimeOnAllHardware -bool false; open /System/Library/CoreServices/PowerChime.app &

Note: Do not include the $ yourself.

Custom Sounds

You can use custom sounds for the chime.

  1. Open the contents of the PowerChime.app

    $ open /System/Library/CoreServices/PowerChime.app/Contents/Resources

    or you can use Finder and Go to Folder...

  2. Make a backup of connect_power.aif (e.g. connect_power.aif~backup.

  3. Drop any audio file of AIFF (.aif) format and rename it to connect_power.aif.

Note: Authentication may be required in order to change the contents.

@ncovercash
Copy link

Why is the defaults command run as a job with the &?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment