Hi all,
may I change (dynamically) the image associated with a launcher?
I have defined a button for launching alsamixergui and I would like it
shows the mute/non_mute state with its icon. The launcher is defined
this way:
--
mixerlauncher = awful.widget.launcher({
image =
".config/awesome/icons_dzen/vol-hi.png",
command = mixer,
align ="right" })
--
and I'm trying something like this in a timer hook:
--
awful.hooks.timer.register(4, function ()
vol = amixer_volume()
if vol = "---" then
mixerlauncher.image = ".config/awesome/icons_dzen/vol-mute.png"
else
mixerlauncher.image = ".config/awesome/icons_dzen/vol-hi.png"
end
volumewidget.text = " " .. vol .. " "
end)
--
I have also tried (with no success) something like:
--
mixerlauncher.image = image(".config/awesome/icons_dzen/vol-mute.png")
--
Thanks in advance :-)
Emilio
--
To unsubscribe, send mail to [EMAIL PROTECTED]