I would love to have a battery level of my iPhone on the touch bar.
When you click on the WiFi icon (option click) I think you can see the iPhone battery level in the personal hotspot section, when you phone is logged in to the same iCloud account and has Bluetooth on.
I want to have this value on the touch bar so everything will be convenient.
I have tried using the
ioreg command as same as when i want to obtain the Bluetooth connected accessories info, but seems iPhone is not on that list. And maybe its possible running a head-less browser accessing to Find My iPhone - iCloud and scraping the data, but that sounds so slow and stupid.
Could anyone tell me how I can do this? Thanks!