summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-05-18 20:39:03 -0400
committerGitHub <noreply@github.com>2020-05-18 20:39:03 -0400
commit2e0933c9e8d94e1b1ae7ec2c21af29581451a95a (patch)
tree3931c65c39175ded646ba90fa6e451a478e60f2a
parentafc5a5dd4959f40177d9c663f722fdfd829afdbc (diff)
parent232e504f46ac07b1d03ea45f197a633fe3a9e9fd (diff)
Merge pull request #145 from nevillelyh/master
fix volume widget initial icon
-rw-r--r--volume-widget/volume.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/volume-widget/volume.lua b/volume-widget/volume.lua
index d7334eb..f04e829 100644
--- a/volume-widget/volume.lua
+++ b/volume-widget/volume.lua
@@ -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