Merge pull request #76 from kub1x/master
destroy notification prior making new one
This commit is contained in:
commit
6782ce8615
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue