diff options
author | Pavel Makhov <pmakhov@touchtunes.com> | 2019-03-28 14:45:06 -0400 |
---|---|---|
committer | Pavel Makhov <pmakhov@touchtunes.com> | 2019-03-28 14:45:06 -0400 |
commit | 5f6de88d01e2a193882252b681137f0ad6719aea (patch) | |
tree | 5f790071a0e5616543b9b92b5a6e0e254ebe56d9 | |
parent | e3255c7af840d1297d205322d58429d2bcadcfa2 (diff) |
Destroy existing notification prior creating a new one
-rw-r--r-- | batteryarc-widget/batteryarc.lua | 1 |
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", |