Tweak README a little bit

This commit is contained in:
Stefano Mazzucco 2019-12-18 13:25:31 +00:00
parent 0f1a1c726b
commit 1511cb1af3
1 changed files with 5 additions and 1 deletions

View File

@ -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: yellow background color once the battery discharges below 15% as follows:
``` lua ``` lua
widget.warning_config = { local gears = require("gears") -- needed to set the shape
local power = require("power_widget")
power.warning_config = {
percentage = 15, percentage = 15,
message = "The battery is getting low", message = "The battery is getting low",
preset = { preset = {