X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2565a0f0b0dc6adf1f155587373a9e247e6e6b39..2e8fd41bc3ca120ae71658aeda98bcb91a0fd9d9:/widgets/mpd.lua diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 6b66f81..cea4a78 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -40,7 +40,7 @@ local function worker(args) local mpdcover = helpers.scripts_dir .. "mpdcover" local mpdh = "telnet://" .. host .. ":" .. port - local echo = "echo 'password " .. password .. "\nstatus\ncurrentsong\nclose'" + local echo = "echo -e 'password " .. password .. "\nstatus\ncurrentsong\nclose'" mpd.widget = wibox.widget.textbox('') @@ -89,7 +89,7 @@ local function worker(args) then helpers.set_map("current mpd track", mpd_now.title) - if string.match(mpd_now.file, "http://") == nil + if string.match(mpd_now.file, "http.*://") == nil then -- local file os.execute(string.format("%s %q %q %d %q", mpdcover, music_dir, mpd_now.file, cover_size, default_art))