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()
|
local function show_battery_status()
|
||||||
awful.spawn.easy_async([[bash -c 'acpi']],
|
awful.spawn.easy_async([[bash -c 'acpi']],
|
||||||
function(stdout, _, _, _)
|
function(stdout, _, _, _)
|
||||||
|
naughty.destroy(notification)
|
||||||
notification = naughty.notify{
|
notification = naughty.notify{
|
||||||
text = stdout,
|
text = stdout,
|
||||||
title = "Battery status",
|
title = "Battery status",
|
||||||
|
|
Loading…
Reference in New Issue