From 0594fb0ebdfa65f1a15b820b9690d5802e82ad1b Mon Sep 17 00:00:00 2001 From: luke bonham Date: Wed, 29 Jul 2015 17:15:45 +0200 Subject: [PATCH 1/1] #112: custom echo cmd added --- widgets/mpd.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('') -- 2.39.5