xbar-plugins
xbar-plugins copied to clipboard
re: Mouse battery
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?
Use this https://github.com/matryer/bitbar-plugins/blob/master/System/Battery/keyboard-system_profiler.1m.rb
And change instances of "Keyboard" to "Mouse"