You are not logged in.
Pages: 1
I use vicious in order to have a notification in my wibox, it's works but I would like to have the cover when I change music ?
Here's my rc.lua
-- MPD Widget
mpdwidget = wibox.widget.textbox()
mpdicon = wibox.widget.imagebox()
mpdicon:set_image(theme.confdir .. "/widgets/note.png")
vicious.register(mpdwidget, vicious.widgets.mpd,
function(widget, args)
-- play
if (args["{state}"] == "Play") then
return red .. args["{Title}"] .. coldef .. colwhi .. " - " .. coldef .. colwhi ..
args["{Artist}"] .. coldef
-- pause
elseif (args["{state}"] == "Pause") then
return red .. "mpd</span>" .. colwhi .." en pause</span>"
-- stop
elseif (args["{state}"] == "Stop") then
return red .. "mpd</span>" .. colwhi .." stoppé</span>"
-- not running
else
return red .. "mpd</span>" .. colwhi .." éteint</span>"
end
end, 1)Thanks
Last edited by NeanderMarcl (2013-08-28 16:58:29)
Offline
Please use code tags for things like that... uh, code.
Offline
Have you looked at the mpd widgets in the awesome wiki? The awesomempd widget appears to do what you want.
http://awesome.naquadah.org/wiki/MPD
http://awesome.naquadah.org/wiki/Awesompd_widget
Offline
I've tried it the notify works but I can't see the cover.
I had something like that http://awesome.naquadah.org/w/images/ar … mple_1.png
Last edited by NeanderMarcl (2013-08-28 17:41:24)
Offline
I've paste the rcsample.lua in the rc.lua but I've have an error in the awesompd.lua in this line
local request = format("ls '%s' | grep -P '\\.jpg|\\.png|\\.gif|\\.jpeg'",
string.gsub(folder, "'", "'\\''"))The error is near \.
Last edited by NeanderMarcl (2013-08-31 19:04:52)
Offline
Pages: 1