diff options
author | streetturtle <streetturtle@gmail.com> | 2020-05-18 22:20:14 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-05-18 22:20:14 -0400 |
commit | 9ce008ab291238ababf37778aa0f23d784469aa9 (patch) | |
tree | 3021ff05df5c89dd336089e32d46c32bfafcd267 /volume-widget/volume.lua | |
parent | 94d68ccaea8adf22fa6a21ccddfa773741ec45ac (diff) | |
parent | 2e0933c9e8d94e1b1ae7ec2c21af29581451a95a (diff) |
Merge branch 'master' of github.com:streetturtle/awesome-wm-widgets
Diffstat (limited to 'volume-widget/volume.lua')
-rw-r--r-- | volume-widget/volume.lua | 8 |
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 |