Add note about awesome's awful.widget.watch

For simpler widgets that only fetch data from a command,
it might be easier to use awesome's standard library,
thus is it noted in the README just in case an user isn't
aware of that feature.

Also fix a typo.
This commit is contained in:
Nguyễn Gia Phong 2019-01-26 03:18:24 +07:00
parent 699760651b
commit ef36b77221
1 changed files with 6 additions and 1 deletions

View File

@ -88,6 +88,11 @@ Some widget types require an argument to be passed, for example the battery ID.
## Other functions ## Other functions
`vicious.register` alone is not much different from
[awful.widget.watch](https://awesomewm.org/doc/api/classes/awful.widget.watch.html),
which has been added to Awesome since version 4.0. However, Vicious offers more
advanced control of widgets' behavior by providing the following functions.
### Unregister a widget ### Unregister a widget
vicious.unregister(widget, keep) vicious.unregister(widget, keep)
@ -123,7 +128,7 @@ Enable caching of values returned by a widget type.
vicious.call(wtype, format, warg) vicious.call(wtype, format, warg)
Fetch data from `widget` to use it outside from the wibox Fetch data from `wtype` to use it outside from the wibox
([example](#call-example)). ([example](#call-example)).
## <a name="widgets"></a>Widget types ## <a name="widgets"></a>Widget types