Debian Codegraph @

vicious/docs/source/usage-lua.rst

raw
1 Usage as a Lua Library
2 ======================
3
4 When provided by an operating system package, or installed from source
5 into the Lua library path, Vicious can be used as a regular Lua_ library,
6 to be used stand-alone or to feed widgets of any window manager
7 (e.g. Ion, WMII). It is compatible with Lua 5.1 and above.
8
9 .. code-block:: lua
10
11 > widgets = require("vicious.widgets.init")
12 > print(widgets.volume(nil, "Master")[1])
13 100
14
15 .. _Lua: https://www.lua.org/