Notes from building Lunille

How to check your Magic Mouse, Keyboard and Trackpad battery on a Mac

A Magic Mouse, Magic Keyboard or Magic Trackpad has no light that shows how much charge is left. Apple's own charging guide says the device has no charge indicator of its own, so the Mac is where you look.

Here are the ways macOS shows it, from the quickest to the nerdiest, and then a few apps that keep the number in view. I checked the steps against Apple's support pages for macOS 14 Sonoma through macOS 27.

The quick way: Control Center

Click Control Center in the menu bar, then click Bluetooth. Your connected mouse, keyboard and trackpad are listed there with their battery level. These are the steps Apple gives for all three accessories in the same guide.

That's it for most people. The rest of this post is for when you check often, want the level on screen, or the number isn't showing.

Put Bluetooth in the menu bar

If you check often, give Bluetooth its own icon in the menu bar, so it's one click instead of two. The setting moved in macOS Tahoe.

macOS Tahoe 26 and macOS 27: choose Apple menu › System Settings, click Menu Bar in the sidebar, then select Bluetooth.

macOS Sonoma 14 and Sequoia 15: choose Apple menu › System Settings, click Control Center in the sidebar, click the pop-up menu next to Bluetooth, then choose Show in Menu Bar.

Apple lists both versions on its page about showing Bluetooth in the Mac menu bar. On Tahoe and later you can also drag items from Control Center to the menu bar, as the Mac User Guide's page on customizing the menu bar explains.

Add a Batteries widget to the desktop

From macOS Sonoma on, widgets can sit on the desktop. Control-click the wallpaper, choose Edit Widgets, click Batteries in the sidebar, then click the size you want, or drag it to a spot on the desktop. Apple covers widgets in general in Add and customize widgets on Mac and the Batteries widget on its battery widget page.

The widget doesn't always list every accessory. Apple's forums have several threads from people whose Magic Mouse is missing from it, such as this one. If yours is missing, the Bluetooth menu is the one to trust.

Check it from Terminal

macOS keeps each Magic accessory's battery level in the IORegistry. I came across it while working out what colour a Magic Mouse is. Paste this into Terminal:

ioreg -r -c AppleDeviceManagementHIDEventService -l | grep -E '"(Product|BatteryPercent)"'

On my MacBook it prints this. I trimmed my name out of the mouse's name, and the lines ioreg draws on the left:

"Product" = "Apple Internal Keyboard / Trackpad"
"Product" = "Magic Mouse"
"BatteryPercent" = 74

The built-in keyboard and trackpad have no battery line of their own. A connected Magic Keyboard or Magic Trackpad should show up the same way as the mouse, with its own BatteryPercent, though the mouse is the only one I have here to test.

The same entry also holds two low battery thresholds:

ioreg -r -c AppleDeviceManagementHIDEventService -l | grep LowBatteryNotificationPercentage
"CriticallyLowBatteryNotificationPercentage" = 3
"LowBatteryNotificationPercentage" = 6

Going by the names, macOS warns about this mouse at 6% and again at 3%. I haven't let mine run down to see it happen, and one thread on Apple's forums reports no low battery alerts at all after a macOS 26 update. Either way, that's late, and a Magic Mouse can't be used while it charges (Magic Keyboard and Magic Trackpad can). If you'd rather not be caught out, check the level now and then and charge the mouse when you step away.

This isn't a documented interface. I've run it on macOS 27 with a second-generation Magic Mouse, and scripts shared online read the same key, but Apple could change it.

If the level isn't showing

First make sure the accessory is awake and connected: move the mouse or press a key, then open the Bluetooth menu again.

If the menu shows the device without a percentage, run the Terminal line above. When BatteryPercent is there, macOS knows the level and only the display is missing it. When the accessory isn't in the output at all, it's either not connected or a model that doesn't report its battery there.

If it's missing only from the widget, use the menu bar or Control Center instead.

Apps that keep the level in view

If you'd rather see the number without clicking anything, a menu bar app does it.

AirBattery is free and open source. It gathers the battery levels of your devices and shows them in the Dock, the menu bar or a widget, on macOS 11 or later.

iStat Menus is a paid system monitor. Its battery menu includes AirPods, Magic Mouse, Magic Trackpad and other Bluetooth devices, and it needs macOS 13.5 or later.

In the notch, with Lunille

I make Lunille, a notch app for the Mac, and this is one of the things it does. When a Magic Mouse, Keyboard or Trackpad connects, a card shows in the notch with a 3D model of it in the colour macOS records for it, so a black mouse is drawn black, and its battery percentage is on the card straight away. AirPods and other headphones get the same card, with a battery ring for each part.

It's more than a battery app. A little moon called Luni lives in the notch and reacts to what your Mac does, and the notch also holds your music with synced lyrics, calendar, a file tray and clipboard history. If all you want is a battery number in the menu bar, the apps above are the simpler choice.

Lunille runs on macOS 14 or later, on Apple silicon and Intel, and on Macs without a notch it shows as a small pill at the top of the screen. It's $14.99 once for up to 3 Macs, with a 14-day free trial that needs no account, at lunille.com.