From ef36b772217b029201eda9812e4cd0e5dc2826e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Sat, 26 Jan 2019 03:18:24 +0700 Subject: [PATCH] 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. --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7068dc2..fd774ec 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,11 @@ Some widget types require an argument to be passed, for example the battery ID. ## 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 vicious.unregister(widget, keep) @@ -123,7 +128,7 @@ Enable caching of values returned by a widget type. 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)). ## Widget types