Hi!

On 11.11.2012, 20:47, Adrian C. wrote:
> anrxc@sputnik:$ lua
>> widgets = require("vicious.widgets")
>> print(widgets.volume(nil, "Master")[1])
Ok, but is there somewhere an api-documentation of vicious? Or where can
I look up what arguments the function needs (especially the "nil" in
your example and "Master" being the second one)?.

> There's a force() function provided which can be called to update a 
> widget on events like mouse scroll.
Thats in fact comes very handy! Thanks! But force() just works on
registered widgets, I assume? And if yes, is there any possibility to
register widgets without having them updated (apart from setting the
interval to sth. big)? I don't need that at the moment, but just to know
it, if I really want to make a widget that needs to be updated just on
events.

> But let's take me as an example, sometimes I will drop a terminal to run 
> alsamixer. Or I can lower the volume in mplayer while watching a video. 
> It's useful to have some timer on vicious.widgets.volume to reflect 
> _those_ changes.
That's indeed right. Well, I think I go on as planned for learning
purposes and will do it with register() and force() finally.

Thanks,
Manuel

-- 
To unsubscribe, send mail to [email protected].

Reply via email to