El Sat, 29 May 2010 00:23:26 +0200
"Adrian C." <[email protected]> escribió:
> On Sat, 29 May 2010, Adrian C. wrote:
> 
> > On Fri, 28 May 2010, Tomás Solar Castro wrote:
> > 
> > > I use that widget with this conf:
> > 
> > Did your MUA throw up? It's not readable.
> 
> Okay, I deciphered it... by using a format function you can populate
> a naughty widget with data from the widget it self. Don't have to use
> any external things. But NOT like here: 
> 
> http://www.gnewbook.org/pg/blog/tsolar/read/29715/battery-icon-with-awesome-vicious-widget
> 
> 
> You are abusing vicious.widgets.bat... if you wish to register a
> custom function with vicious then provide it as a second argument to 
> vicious.register() - avoid vicious bat widget altogether, format 
> function are for another thing completely.
> 

I know it and I realize it. It is not the best and most elegant code,
but it does the trick... That was just for trying. If you could help me
to fix it I will appreciate that :)

> Why do use use acpi tool to grab battery data anyway? The widget does 
> not find data for your BAT0? In worst case scenarion there are
> multiple battery widgets available in the contrib branch (acpitool,
> Apple PMU, ACPI...) for people with rare hardware.

I was trying to show a widget that shows the battery status with an
icon. I will try it again with the args array instead reading acpi from
the system

Cheers!

PS: I tried invaders but it didn't work :( I use awesome 3.4.5...



-- 
Tomás Solar Castro
Be Free! http://FSFLA.org
GNU+Linux Registered User #383588
Public PGP Key: FB7590D2 (hkp://pgp.mit.edu:11371)
http://identi.ca/tsolar

Attachment: signature.asc
Description: PGP signature

Reply via email to