Date
Sep. 8th, 2024
 
2024年 8月 6日

Post: OS X : 像 iPhone 一样的充电提示音

OS X : 像 iPhone 一样的充电提示音

Published 12:10 Oct 20, 2015.

Created by @ezra. Categorized in #Programming, and tagged as #macOS.

Source format: Markdown

Table of Content

用 iPhone/iPad/iPod Touch 的同学肯定对充电时的提示音不陌生,但是,有没有想过在 Mac 上也听到同样的声音呢?如果你想过,却不知道怎么实现,今天就让我来告诉你。

首先,为了体现我们的高端之处,我们打开终端工具。

接下来,输入下面的指令:

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

这其实是两条指令,如果你愿意,你可以把他们分开:

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

接下来,插上电源,有没有听到呢?

Pinned Message
HOTODOGO
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
程序猿、设计师、奇怪的博主。
苹果死忠、热爱色彩斑斓的世界。
如有意向请随时 与我联系