Posted By

zingo on 02/13/08


Tagged

osx cli geektool monitor battery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

oamaxa
jleggat


Get Infos on Battery on OSX


 / Published in: Bash
 

  1. system_profiler SPPowerDataType | awk '/Full/ || /Remaining/ || /Cycle/ { printf }' | sed -e 's/[^:]*/Battery/' -e 's/ *R.*):./\//' -e 's/ *Cycle/ (mAh) Cycle/'

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: zingo on April 15, 2008

For a variant based on ruby take a look at http://snipplr.com/view/5758/get-osx-leopard-battery-stats-for-your-laptop/

You need to login to post a comment.