| 1 |
.\" Process this file with |
| 2 |
.\" groff -t -mandoc -Tascii flaw.7 | less |
| 3 |
.\" |
| 4 |
.TH flaw 7 "FEBRUARY 2009" |
| 5 |
.SH NAME |
| 6 |
flaw \- a Lua OO management framework for awesome WM widgets |
| 7 |
.SH DESCRIPTION |
| 8 |
.B flaw |
| 9 |
stands for Fully Loaded AWesome. It is a LUA object oriented library |
| 10 |
providing a thin abstraction layer above awesome widgets. It is aimed |
| 11 |
at being simple and resources efficient. |
| 12 |
.sp |
| 13 |
To achieve these goals, |
| 14 |
.B flaw |
| 15 |
provides the following concepts. |
| 16 |
.IP gadgets |
| 17 |
To add functionality to awesome widgets, |
| 18 |
.B flaw |
| 19 |
defines gadget objects, which are a wrapper around a widget. All |
| 20 |
gadgets have properties, events, a refresh mechanism and a data |
| 21 |
provider (see below). Gadgets can wrap all awesome widget type, |
| 22 |
namely text boxes, image boxes, graphs or progress bars. |
| 23 |
.B flaw |
| 24 |
provides many gadgets for common system information (like CPU or |
| 25 |
memory activity). |
| 26 |
.IP provider |
| 27 |
.B flaw |
| 28 |
tries to minimise system access and data refresh. Since all |
| 29 |
information do not have the same expiration rate, all gadgets refresh |
| 30 |
independently. And since some gadgets can share information, all data |
| 31 |
is provided by providers which can be shared among gadgets. Providers |
| 32 |
maintain status data from the system and refreshes only when necessary |
| 33 |
(ie. when the gadget with the shortest refresh rate demands it). |
| 34 |
.IP events |
| 35 |
Events are a way for the user to modify the gadget behaviour or |
| 36 |
properties when some conditions are met. An event is composed of a |
| 37 |
trigger, which computes the condition, and an action. Event triggers |
| 38 |
are tested by the providers only when data changes. Both the |
| 39 |
condition and the action are provided by the user. |
| 40 |
.SH USAGE |
| 41 |
.B flaw |
| 42 |
depends on the |
| 43 |
.RB lua-filesystem |
| 44 |
package which can be found |
| 45 |
.IR http://luaforge.net/projects/luafilesystem . |
| 46 |
Once installed, the following statement must be inserted in awesome |
| 47 |
configuration before any |
| 48 |
.B flaw |
| 49 |
gadget or mechanism is used. |
| 50 |
.RS |
| 51 |
\f(CWrequire('flaw')\fP |
| 52 |
.RE |
| 53 |
.PP |
| 54 |
Using |
| 55 |
.B flaw |
| 56 |
consists in creating gadgets, passing them parameters to customize their |
| 57 |
display and events to add some behaviour to them, and then adding them |
| 58 |
in a wibox like any other awesome widget. |
| 59 |
.B flaw |
| 60 |
and awful gadgets can live together. The complete |
| 61 |
.B flaw |
| 62 |
documentation is available in Luadoc format. Enter the following command to generate it. |
| 63 |
.RS |
| 64 |
\f(CWLUA_PATH="path_toflaw/doclet/html/?;;" luadoc -d html --nofiles *.lua\fP |
| 65 |
.RE |
| 66 |
.SH DIAGNOSTICS |
| 67 |
.B flaw |
| 68 |
tries to recover upon bad invocations. When something wrong occurs, it |
| 69 |
outputs warning or error messages to stderr (for example, if awesome |
| 70 |
was started with xsession, output will be found in |
| 71 |
.I ~/.xsession-errors |
| 72 |
). |
| 73 |
.SH BUGS |
| 74 |
Certainly a lot. |
| 75 |
.SH AUTHOR |
| 76 |
David Soulayrol <david.soulayrol at gmail dot net> |
| 77 |
.SH "SEE ALSO" |
| 78 |
.BR awesome (1), |
| 79 |
.BR awesome-client (1), |
| 80 |
.BR awesomerc (5) |