diff --git a/README.md b/README.md index 972aedd..8b2a880 100644 --- a/README.md +++ b/README.md @@ -95,10 +95,9 @@ Require the module: -- require *after* `beautiful.init` or the theme will be inconsistent! local power = require("power_widget") -- override the GUI client. -power.gui_client = "xfce4-power-manager" +power.gui_client = "xfce4-power-manager-settings" -- override the critical battery percentage power.critical_percentage = 18 -power:init() ``` Add the widget to your layout: diff --git a/power_widget.lua b/power_widget.lua index 4114273..f8233d0 100644 --- a/power_widget.lua +++ b/power_widget.lua @@ -136,6 +136,7 @@ function widget:init() end end ))) + return self end -return widget +return widget:init()