You are not logged in.

#1 2006-10-15 15:13:54

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

battstat - simple CLI battery status tool

I didn't like the consistency of ibam so I wrote my own. It doesn't do nearly as much as ibam but it seems more consistant - at least for me. Anyways thought I'd share it for anyone who is interested. Here are a few sample outputs:

tyletyler@cobalt ~ $ battstat
         <<BAT1>>
SANYO - MAL32b | LION | rechargeable
Remaining Charge  : 36.06 %
Time Left         : 00:43 Hrs
Charging State    : discharging
Charge Alert      : None
tyler@cobalt ~ $ battstat
         <<BAT1>>
SANYO - MAL32b | LION | rechargeable
Remaining Charge  : 34.65 %
Time Left         : 01:53 Hrs
Charging State    : charging
Charge Alert      : None
tyler@cobalt ~ $ battstat
         <<BAT1>>
SANYO - MAL32b | LION | rechargeable
Remaining Charge  : 99.64 %
Time Left         : --:-- Hrs
Charging State    : charged
Charge Alert      : None

pastebin: http://pastebin.ca/205655

Offline

#2 2006-10-21 13:10:08

Pierluigi
Member
Registered: 2004-04-10
Posts: 90
Website

Re: battstat - simple CLI battery status tool

cool... thank you, i like it

Offline

#3 2008-04-12 18:15:17

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: battstat - simple CLI battery status tool

Cool, that's exactly what I was looking for. Thank you smile


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#4 2008-04-13 04:23:38

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: battstat - simple CLI battery status tool

Very nice. Just what I was looking for to use with my dwm dzen widgets. Also brought my attention to this fine community forums. I've now got somewhere to post the CLI/Ruby extension keyboard switcher I recently made.

Thanks!

Offline

#5 2009-02-13 23:51:00

Rimas
Member
Registered: 2006-12-10
Posts: 19

Re: battstat - simple CLI battery status tool

Great! Just what I needed smile
Thanks!

Offline

Board footer

Powered by FluxBB