fix volume widget initial icon

This commit is contained in:
Neville Li 2020-05-18 16:48:45 -04:00
parent afc5a5dd49
commit 232e504f46
1 changed files with 8 additions and 0 deletions

View File

@ -157,6 +157,14 @@ local function worker(args)
volume.widget:connect_signal("mouse::leave", function() naughty.destroy(volume.notification) end)
end
--}}}
--{{{ Set initial icon
spawn.easy_async(GET_VOLUME_CMD, function(stdout, stderr, exitreason, exitcode)
parse_output(stdout)
volume.widget.image = PATH_TO_ICONS .. volume_icon_name .. ".svg"
end)
--}}}
return volume.widget
end