xbar-plugins icon indicating copy to clipboard operation
xbar-plugins copied to clipboard

re: Mouse battery

Open lcardito opened this issue 6 years ago • 1 comments

FAO: (@alexandregz)

Hey team! Just tried to add this one but unfortunately the ioreg -n BNBMouseDevice did not give any result for me, using AppleDeviceManagementHIDEventService instead!

ioreg -n AppleDeviceManagementHIDEventService | fgrep BatteryPercent | fgrep -v \{ | sed 's/[^[:digit:]]//g'

Let me know if we need more info / can add this command in case the first one fails?

lcardito avatar Jun 26 '19 07:06 lcardito

Use this https://github.com/matryer/bitbar-plugins/blob/master/System/Battery/keyboard-system_profiler.1m.rb

And change instances of "Keyboard" to "Mouse"

gingerbeardman avatar Jun 26 '19 14:06 gingerbeardman