Merge pull request #76 from kub1x/master

destroy notification prior making new one
This commit is contained in:
streetturtle 2019-03-26 10:52:51 -04:00 committed by GitHub
commit 6782ce8615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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