summaryrefslogtreecommitdiff
path: root/battery-widget/battery.lua
diff options
context:
space:
mode:
Diffstat (limited to 'battery-widget/battery.lua')
-rw-r--r--battery-widget/battery.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index a0116eb..3823fba 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -49,12 +49,13 @@ watch(
else
batteryType = string.format(batteryType,'')
end
- battery_widget.image = path_to_icons .. batteryType .. ".svg"
+ widget.image = path_to_icons .. batteryType .. ".svg"
-- Update popup text
-- TODO: Filter long lines
battery_popup.text = string.gsub(stdout, "\n$", "")
- end
+ end,
+ battery_widget
)
-- Alternative to tooltip - popup message shown by naughty library. You can compare both and choose the preferred one