diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2019-03-26 10:52:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-26 10:52:51 -0400 |
commit | 6782ce86150c3153ad1f2796166b5137abc3b1cb (patch) | |
tree | 896ce8d57af33cbc9139a853c057dd77b2d5488d /battery-widget | |
parent | e14c578c4838d2beee84b3fb2857f715070503b1 (diff) | |
parent | f7a19ff1bc9ace0e9baa3c2828ad527bda098376 (diff) |
Merge pull request #76 from kub1x/master
destroy notification prior making new one
Diffstat (limited to 'battery-widget')
-rw-r--r-- | battery-widget/battery.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua index d59fdc6..6d9f086 100644 --- a/battery-widget/battery.lua +++ b/battery-widget/battery.lua @@ -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", |