Destroy existing notification prior creating a new one
This commit is contained in:
parent
e3255c7af8
commit
5f6de88d01
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue