summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2019-03-26 10:52:51 -0400
committerGitHub <noreply@github.com>2019-03-26 10:52:51 -0400
commit6782ce86150c3153ad1f2796166b5137abc3b1cb (patch)
tree896ce8d57af33cbc9139a853c057dd77b2d5488d
parente14c578c4838d2beee84b3fb2857f715070503b1 (diff)
parentf7a19ff1bc9ace0e9baa3c2828ad527bda098376 (diff)
Merge pull request #76 from kub1x/master
destroy notification prior making new one
-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",