X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/2565a0f0b0dc6adf1f155587373a9e247e6e6b39..f291bd62b75e4d18b6e96fff845c3597640d92a7:/widgets/mpd.lua?ds=inline diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 6b66f81..a0b7192 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 = "/bin/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))