Le Mon, 31 May 2010 09:27:56 -0400, Andrei Thorp <[email protected]> a écrit :
> On Mon, May 31, 2010 at 9:18 AM, Andrei Thorp <[email protected]> > wrote: > > On Mon, May 31, 2010 at 6:44 AM, Garrik <[email protected]> wrote: > >> Le Sat, 29 May 2010 17:04:42 +0200, > >> "Adrian C." <[email protected]> a écrit : > >> > >>> On Fri, 28 May 2010, Tomás Solar Castro wrote: > >>> > >>> > I know it and I realize it. It is not the best and most elegant > >>> > code, but it does the trick > >>> > >>> Take the function out of the register() call. Then register the > >>> function it self as a widget. > >>> > >>> vicious.register(mywidget, myfunction, "", 10) > >>> > >> > >> Hi, > >> > >> The persentation went well. I made 2 rc.lua files for the > >> occasion, one using severals widgets from vicious and obvious in a > >> "floating type" config and another one using only the basic > >> modules with one hand written widget and prompt. People were > >> mostly interested in the following ponts: > >> > >> -possibilty to have different tiling behaviour on deifferent tags > >> -ability to reload your config file without quitting awesome > >> -the lua language using config file > >> -abilty to be controled only with the keyboard > >> > >> Thanks everyone for your advice, if you are insterested in reading > >> the configs I showed, you can see them at > >> ftp://garrik.info/code/aweseome/ > > > > Small typo -- should be ftp://garrik.info/code/awesome/ > > > > It looks like this is something I should know but don't understand. > How is it that this syntax works? > > mytimer = timer { timeout = 2 } > > I'm also rather concerned by how the rc.basic.lua defines the variable > mytimer multiple times for different widgets. Are references to the > timer widget really that inessential? > Well it's just an error of mine, the fact is I used a base rc.lua and with the bat widget and added the cpu widget in quite a hurry so I didn't pay attention to the fact thar mytimer was defined two times. This is corrected now -- Garrik -- To unsubscribe, send mail to [email protected].
