Hello.
I want to add some buttons which will control my musicpd to wibox, so I have wrote such code:

mpdrew = awful.widget.button({ image = image(awful.util.getdir("config") .. "/images/media-seek-backward.png")}) mpdrew:buttons(awful.util.table.join(awful.button({ }, 1, nil, function() awful.util.spawn("mpc prev", false, 1) end))) mpdplay = awful.widget.button({ image = image(awful.util.getdir("config") .. "/images/media-playback-start.png")}) mpdplay:buttons(awful.util.table.join(awful.button({ }, 1, nil, function() awful.util.spawn("mpc play", false, 1) end))) mpdpause = awful.widget.button({ image = image(awful.util.getdir("config") .. "/images/media-playback-pause.png")}) mpdpause:buttons(awful.util.table.join(awful.button({ }, 1, nil, function() awful.util.spawn("mpc pause", false, 1) end))) mpdfwd = awful.widget.button({ image = image(awful.util.getdir("config") .. "/images/media-seek-forward.png")}) mpdfwd:buttons(awful.util.table.join(awful.button({ }, 1, nil, function() awful.util.spawn("mpc next", false, 1) end)))

It works, but not very well. When I press any button it doesn't become deplaced and when I move mouse to another button not releasing it second button deplaces just as planned. As you guessed I want to see both buttons animated. It would be great if there isn't artifacts on the background when button deplaces but it is restriction from awesome obviously.
What is wrong in my config?

Unfortunately, I'm not familiar at all with Lua and write my config using examples and API doc.
Sorry for my english, I had no practice for a long time :).

Thx.

Reply via email to