1

Topic: Battery power module

I've just bought a new Laptop and installed LS on it. What always bothered me with the old laptop was that there was no decent battery module. I've been searching again and still couldn't find any. Is there a battery module around somewhere?

LiteStep addict since b23. http://brembs.net

2 (edited by Tobbe 2011-10-14 09:26:51 am)

Re: Battery power module

I think you can get the battery status with xLabel and/or xStatsClass and then you can use that value to build a pretty meter

Edit:
Reading the xStatsClass readme, it looks like you should be able to do:

BatteryLabelText "You have [battery]% of your battery remaining"

Make sure to load xStatsClass before xLabel.

Edit 2:
Of course you can use the [battery] value in a script to draw a pretty image of your remaining battery level. If a simple bar graph is good enough, you could use xStatsGraph

3

Re: Battery power module

Indeed, I could write a script. I even think with the scripting possibilities in LS, almost anything could be done. However, if I had the time and the motivation to write a script, I could probably also code a module :-)
What I was looking for was a module that I could plug into my theme with one or two lines of code and then tweak as I find time and motivation. I guess that's still something worth thinking about for LS.

For instance, I have rainmeter installed for my other account on the laptop (used for presentations). I took my just a few clicks and I had a battery meter (but it crashes when I pull the AC plug). A port of that functionality would be very useful, I think.

LiteStep addict since b23. http://brembs.net

4

Re: Battery power module

You can try my theme, which has an xlabel that uses xStatsClass, but you can only change the energy profile if you are in win7. As my theme is still in testing phase, I still have not developed a way to change the energy profile in winXP. The name of the theme is IceFlame, it is here in the forum: http://forums.litestep.info/viewtopic.php?id=68. If you want to create your theme with a battery meter, you can copy the file "BatteryView.rc" and your images and manipulate them freely. Good luck

5

Re: Battery power module

That looks like something I could make to fit my theme, thanks a lot!

LiteStep addict since b23. http://brembs.net