From: luke bonham Date: Wed, 29 Jul 2015 15:15:45 +0000 (+0200) Subject: #112: custom echo cmd added X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/0594fb0ebdfa65f1a15b820b9690d5802e82ad1b?ds=inline;hp=--cc #112: custom echo cmd added --- 0594fb0ebdfa65f1a15b820b9690d5802e82ad1b 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('')