-local mpc = require("widgets/mpc")
-local textbox = require("wibox.widget.textbox")
-local gears = require("gears")
-local awful = require("awful")
+local awful = require("awful")
+local gears = require("gears")
+local mpc = require("widgets/mpc")
local naughty = require("naughty")
-local timer = require("gears.timer")
-local wibox = require("wibox")
-
---TODO remove
-local dbg = require("gears.debug")
+local textbox = require("wibox.widget.textbox")
+local timer = require("gears.timer")
+local wibox = require("wibox")
local widget = {}
widget._textbox = textbox()
local artist = self._currentsong.artist
local title = self._currentsong.title
local file = self._currentsong.file
- text = text .. tostring(artist or "") .. " - " .. tostring(title or "")
if not artist then
text = string.format("%s", title or file )
else
info.text = tostring(song.artist or "") .. " - " .. tostring(song.title or "") .. "\n"
.. tostring(song.album or "")
callback(info)
- return false
end)
end