Skip to content

Instantly share code, notes, and snippets.

@jfarmer
Created January 2, 2012 00:19
Show Gist options
  • Save jfarmer/1548762 to your computer and use it in GitHub Desktop.
Save jfarmer/1548762 to your computer and use it in GitHub Desktop.
Get the battery life percentage of your bluetooth mouse on Mac OS X
ioreg -n "BNBMouseDevice" | grep -i "batterypercent" | sed 's/[^0-9]//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment