I know how to get it through the menubar, but how can I get it via the command line?
How to determine the battery level of the magic mouse from the command line
bluetoothcommand linemouse
Related Question
- How is the battery level calculated in the magic mouse
- How to “Get Info” from the command line
- MacOS – Replicate the Mouse config in command line
- MacOS – Downloading additional voices from command-line
- MacOS – Check the battery level of connected bluetooth headphones from the command line
- How to get the expiration date of a certificate in a keychain from the command line
- How to add the wifi and bluetooth icon to the menubar programatically (from the command line)
Best Answer
Use
ioreg
and search for battery using grepSince
ioreg
is really verbose - here is one command that cuts down to the names of bluetooth devices and all percentage of battery for each.