Mac Terminal Program to Access Battery Stats
My Mac desktop setup is kind of unique: I hide absolutely everything, so I get a full screen all the time. The Dock is small and on auto-hide; the menu bar at the top is hidden by Menufela.
But by hiding everything, I lose info like the date and time, as well as my battery status. Well, the date and time are easy enough to get to with GeekTool. I have GeekTool run this command every minute:
date +’%a %b %e %H:%M:%S’
Which gives me something like “Thu Jan 3 16:06:21” on my desktop.
But what about my battery stats? Well, I wrote a quick little perl script to display them on one line, and then I have GeekTool run that script and display the output to the desktop.
You can see all this by peeking at the lower right-hand corner of my desktop screenshot (click the image for the full-size version):
The script is here: battery.pl. This is the first quick and dirty take; I might try and improve it later. Or improve it and e-mail me with your updates!
