0

Almost always I have my MacBook plugged to preserve battery health. But sometimes I forget to plug the adaptor or the wall outlet is switched off by others.

How can I have the MacBook warn me when it's running in battery mode?

DavidPostill
  • 162,382
somebody4
  • 155

2 Answers2

3

How can I have the MacBook warn me when it's running in battery mode?

Here are a few possibilities:

  1. Power cable connected/disconnected alerts

Open Terminal and run the following command.

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

Connect, or disconnect the power cable from your Mac and you will hear an audio alert. There will be no visual/desktop alert telling you what the sound means.

(Emphasis mine)

Source: How to get a power cable connected/disconnected alert on macOS

  1. UnPlugged Application

UnPlugged is an application that notifies you when the power cord of the MacBook is unplugged or plugged back in. It also notifies you in regular steps about your batteries capacity while you run on battery or while you charge your battery.

Notifications are done using the Notification Center, Growl or with a built in notification window.

UnPlugged stays completely invisible while monitoring your power plug. Only a small Menu Item is visible, showing the current battery status.

(Emphasis mine)

It costs $5.99.

Source: Download UnPlugged for Mac | MacUpdate

  1. Juice Application

Use Juice! to keep an eye on your MacBook’s battery charge level. It can let you know when it’s time to plug in or when it’s OK to disconnect from the mains. Set it to warn you when you’re running low on battery or when the power supply to your laptop is interrupted.

(Emphasis mine)

It costs £2.99 / 3,49€

Source: Juice! - The power monitoring app that looks after your MacBook battery.

Disclaimer: I don't own a MacBook so I've not tested any of these possibilities.


Further reading:

DavidPostill
  • 162,382
0

Open shortcuts and add the following: https://i.sstatic.net/QQuymUnZ.png

Now you can run it in a loop as a shell script as follows:

while true; do /usr/bin/shortcuts run "CHARGE"; sleep 5; done

Follow these directions to add it to startup:

https://superuser.com/a/465506