From 1511cb1af3e72d22a52fea5d600e09c85a207ce6 Mon Sep 17 00:00:00 2001 From: Stefano Mazzucco Date: Wed, 18 Dec 2019 13:25:31 +0000 Subject: [PATCH] Tweak README a little bit --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df9888d..a28e156 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,11 @@ For example, one could add a warning with a custom message that times out after yellow background color once the battery discharges below 15% as follows: ``` lua -widget.warning_config = { +local gears = require("gears") -- needed to set the shape + +local power = require("power_widget") + +power.warning_config = { percentage = 15, message = "The battery is getting low", preset = {