Merge pull request #145 from nevillelyh/master

fix volume widget initial icon
This commit is contained in:
streetturtle 2020-05-18 20:39:03 -04:00 committed by GitHub
commit 2e0933c9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) volume.widget:connect_signal("mouse::leave", function() naughty.destroy(volume.notification) end)
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 return volume.widget
end end