Destroy existing notification prior creating a new one

This commit is contained in:
Pavel Makhov 2019-03-28 14:45:06 -04:00
parent e3255c7af8
commit 5f6de88d01
1 changed files with 1 additions and 0 deletions

View File

@ -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",