summaryrefslogtreecommitdiff
path: root/volume-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2019-12-24 15:46:01 -0500
committerGitHub <noreply@github.com>2019-12-24 15:46:01 -0500
commitbc3fe1e31f2e0962214435c1e7647d87820e60d1 (patch)
tree21435e1244753a021b3367b5db318e9ec0a26fe0 /volume-widget
parenta190675840721dc1a130aaa793a19e03b8b5ac8a (diff)
parent63cd5efeaedba7a246c5a91f73ac110bb80d72c9 (diff)
Merge pull request #105 from utix/volumewidget/avoidMultiNotification
Destroy notification before creating a new one
Diffstat (limited to 'volume-widget')
-rw-r--r--volume-widget/volume.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua
index 2544d14..df1a9f4 100644
--- a/volume-widget/volume.lua
+++ b/volume-widget/volume.lua
@@ -67,6 +67,7 @@ local function worker(args)
local function show_volume(val)
spawn.easy_async(GET_VOLUME_CMD,
function(stdout, _, _, _)
+ naughty.destroy(notification)
notification = naughty.notify{
text = get_notification_text(stdout),
icon=path_to_icons .. val .. ".svg",