summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--battery-widget/battery.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index d59fdc6..6d9f086 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -35,6 +35,7 @@ local notification
local function show_battery_status()
awful.spawn.easy_async([[bash -c 'acpi']],
function(stdout, _, _, _)
+ naughty.destroy(notification)
notification = naughty.notify{
text = stdout,
title = "Battery status",