how to let widget's length is flexible , so that the mpd widget will not override other widget, because the mpd widget's length will change.
belowing is a clip of my mpd widget: Thanks for your help in advance -- MPD widget mpdwidget = widget({ type = 'textbox' }) vicious.register(mpdwidget, vicious.widgets.mpd, function (widget, args) if args["{state}"] == "Stop" then return "" elseif args["{state}"] == "Play" then -- return "" .. colwhi .. " mpd: " .. coldef .. colbred .. args["{Title}"] .. " - " .. args["{Artist}"] .. coldef .. "" return "" .. colwhi .. "♀♀ : " .. coldef .. colbblu .. args["{Title}"] .. " - " .. args["{Artist}"] .. coldef .. "" elseif args["{state}"] == "Pause" then return "" .. colwhi .. "♀ : " .. coldef .. colbblk .. "Paused" .. coldef .. "" end end) mpdwidget:buttons( awful.util.table.join( awful.button({}, 1, function () awful.util.spawn("mpc toggle", false) end), awful.button({}, 2, function () awful.util.spawn( terminal .. " -e ncmpcpp") end), awful.button({}, 4, function () awful.util.spawn("mpc prev", false) end), awful.button({}, 5, function () awful.util.spawn("mpc next", false) end) ) ) -- I try to detoxify my memory. Forget can not be treated as betray. It's not certainly a love even though you remember to the end of your life. -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.