Help - Search - Members - Calendar
Full Version: Anyone use Geektool here?
Neowin Forums > Macintosh Customization & Support > Mac Software Discussion & Help > Customizing OS X
DrBroccoli
So I've been using Geektool for some time to display the time and date on my desktop, but recently-in my effort to de-clutter the status bar, I wish to put battery information on my desktop somewhere.

I've found Geektool scripts that show the percentage left or even the remaining mAh left (which I believe is just taken from system_profilier via just the battery info and grep). My problem is I want a time remaining indicator, just like the status bar shows.

I can't seem to figure out where to get this from, or even how the actual OS does it. Someone gave me a perl script I could use, but for some reason, I can't get it working on my system:

http://snipplr.com/view/4525/battery/

Maybe I did something wrong, but here's what I did:

1. Saved that script in /usr/bin/ as "Battery.perl" (to get to usr/bin I did terminal > "open /usr/bin"
2. Made a new Geektool entry and made it a shell command
3. Typed "perl /usr/bin/Battery.perl"

Yet, there is no magic =(.
Shawn Levasseur
Quote - (DrBroccoli @ Aug 6 2009, 09:56) *
So I've been using Geektool for some time to display the time and date on my desktop, but recently-in my effort to de-clutter the status bar, I wish to put battery information on my desktop somewhere.

I've found Geektool scripts that show the percentage left or even the remaining mAh left (which I believe is just taken from system_profilier via just the battery info and grep). My problem is I want a time remaining indicator, just like the status bar shows.

I can't seem to figure out where to get this from, or even how the actual OS does it. Someone gave me a perl script I could use, but for some reason, I can't get it working on my system:

http://snipplr.com/view/4525/battery/

Maybe I did something wrong, but here's what I did:

1. Saved that script in /usr/bin/ as "Battery.perl" (to get to usr/bin I did terminal > "open /usr/bin"
2. Made a new Geektool entry and made it a shell command
3. Typed "perl /usr/bin/Battery.perl"

Yet, there is no magic =(.


try saving the file with .pl as the suffix, not .perl
MasterC
I use that script, and my extension is .perl. You might have to chmod +X it to make it work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.