You are not logged in.
Running on Awesome 3.5, how can I get a widget for displaying the currently playing Deadbeef track?
I found this: http://makandracards.com/makandra/16113 … ow-manager - but it seems to be set up for an earlier version of Awesome.
Last edited by emacsomancer (2014-12-15 15:22:57)
Offline
I got one.
deadbeef = wibox.widget.textbox()
deadbeef:set_align("right")
function deadbeef_s(widget)
local status = io.popen('deadbeef --nowplaying "%a - %t"'):read("*all")
local color = "#FFFFFF"
deadbeef:set_markup("<span color=\"" .. color .. "\">" .. status .. "</span>")
end
deadbeef_s(deadbeef)
mytimer = timer({ timeout = 3 })
mytimer:connect_signal("timeout", function () deadbeef_s(deadbeef) end)
mytimer:start()And of course, add this line.
right_layout:add(deadbeef)Offline
Crashes if the song title continues an "&"....
Offline
Change the line:
deadbeef:set_markup("<span color=\"" .. color .. "\">" .. status .. "</span>")to
deadbeef:set_text(status)Edit :
and remove this line, it not in use anymore.
local color = "#FFFFFF"Last edited by radc (2014-09-28 01:40:21)
Offline
Thanks! That seems to work.
Offline