summaryrefslogtreecommitdiff
path: root/batteryarc-widget
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2019-03-28 14:45:06 -0400
committerPavel Makhov <pmakhov@touchtunes.com>2019-03-28 14:45:06 -0400
commit5f6de88d01e2a193882252b681137f0ad6719aea (patch)
tree5f790071a0e5616543b9b92b5a6e0e254ebe56d9 /batteryarc-widget
parente3255c7af840d1297d205322d58429d2bcadcfa2 (diff)
Destroy existing notification prior creating a new one
Diffstat (limited to 'batteryarc-widget')
-rw-r--r--batteryarc-widget/batteryarc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua
index cc6fbc4..bbfcbea 100644
--- a/batteryarc-widget/batteryarc.lua
+++ b/batteryarc-widget/batteryarc.lua
@@ -112,6 +112,7 @@ local notification
function show_battery_status()
awful.spawn.easy_async([[bash -c 'acpi']],
function(stdout, _, _, _)
+ naughty.destroy(notification)
notification = naughty.notify {
text = stdout,
title = "Battery status",