Apps :: Torsmo



Cool.

I like getting info like this from short scripts instead of additional binaries.

Seems like it could be used a number of ways.

You can run it from the commandline if you are a console or xterm junkie

You can incorporate it into Torsmo

You can build a little FLUA dockapp to report this info.

I like the Torsmo approach because all the other sysinfo is already sitting there so it is a consistent place to store this info.

that is a very nice script. :)
Is there a need to monitor xmms status or simple rss headline viewer or gmail mail headlines in torsmo ?

If You wish I can provide my scripts.

P.S.
Well I found some of them , and modified, actually :)

Hey, your script doesn't work correctly with DSL 3.0.1.  

First off, torsmo already has a battery line that doesn't work.  I fiddled with it, left it, and put in the line to call your script.   It shows this:

Battery:             A:C
,84%

Yep, A:C and it's on two lines.    Any formatting tips?

This is charging state checking that I'm using:-

Code Sample

.
.
}
else
{
  print ":00";
}
print " remains\n";

if ($state eq "discharging" and $prate == 0)
{
  $printstate = "AC on-line";
}
elsif ($state eq "charging")
{
  $printstate = "AC on-line and charging";
}
elsif ($state eq "discharging")
{
     $printstate = "AC unplugged";
}
print " $remain%, $printstate";

You can check battery state by:-
Code Sample
cat /proc/acpi/battery/BAT0/state

and calculate remain time by this formula:  remain capacity / present rate

Next Page...
original here.