> I wondered if it is possible to use it outside of a
> vicious.register-call
Hello vicious is a Lua library which can be used with other window
managers or for purposes other than awesome statusbar.
The register() function is simply an awesome specific helper for awesome
timers and provides some other extras.
anrxc@sputnik:$ lua
> widgets = require("vicious.widgets")
> print(widgets.volume(nil, "Master")[1])
97
> this only needs to be adjusted when I change the volume level
There's a force() function provided which can be called to update a
widget on events like mouse scroll.
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.
--
Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
PGP FP: 02A5 628A D8EE 2A93 996E 929F D5CB 31B7 D20A 0618
--
To unsubscribe, send mail to [email protected].