X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/52deb6911957f840a0191f73c8a9626bd9ff5086..e418d9fb86e95043a678c207f0ca212c98341469:/widgets/mpd.lua?ds=inline diff --git a/widgets/mpd.lua b/widgets/mpd.lua index 642a556..d5f07a8 100644 --- a/widgets/mpd.lua +++ b/widgets/mpd.lua @@ -38,11 +38,12 @@ local function worker(args) local cover_size = args.cover_size or 100 local default_art = args.default_art or "" local followmouse = args.followmouse or false + local echo_cmd = args.echo_cmd or "echo" local settings = args.settings or function() end local mpdcover = helpers.scripts_dir .. "mpdcover" local mpdh = "telnet://" .. host .. ":" .. port - local echo = "/bin/echo -e 'password " .. password .. "\nstatus\ncurrentsong\nclose'" + local echo = echo_cmd .. " 'password " .. password .. "\nstatus\ncurrentsong\nclose'" mpd.widget = wibox.widget.textbox('')