Updated yawn (markdown)

This commit is contained in:
Luke Bonham 2013-09-10 15:10:43 -07:00 committed by copycat-killer
parent 0f36234af0
commit 7d6ad2a551
1 changed files with 7 additions and 4 deletions

11
yawn.md
View File

@ -24,15 +24,18 @@ an existent widget.
- ``args`` - ``args``
An optional table which can contain the following settings: A required table which can contain:
Variables | Meaning | Type | Possible values | Default value Variables | Meaning | Type | Possible values | Default value
--- | --- | --- | --- | --- --- | --- | --- | --- | ---
`u` | Units | string | "c" (Celsius), "f" (Fahrenheit) | "c" `u` | Units | string | "c" (Celsius), "f" (Fahrenheit) | "c"
`toshow` | What to show | string | "forecast", "units", "both" | "forecast" `timeout` | Refresh timeout seconds | int | integers | 600
`color` | ``yawn.widget`` color | string | hexadecimal colors | `settings` | User settings | function | function | empty function
The function creates an imagebox icon and a textbox widget. Add them to you wibox like this: `settings` can use strings `forecast`, `units', and can modify `notification_preset` table, which
will be the preset for the naughty notifications. Check [here](http://awesome.naquadah.org/doc/api/modules/naughty.html#notify) for the list of variables it can contain.
The function `register` creates an imagebox icon and a textbox widget. Add them to you wibox like this:
right_layout:add(yawn.icon) right_layout:add(yawn.icon)
right_layout:add(yawn.widget) right_layout:add(yawn.widget)