fix build

This commit is contained in:
streetturtle 2020-12-17 15:27:00 -05:00
parent 28256cd21c
commit 8ad4d0228d
2 changed files with 4 additions and 3 deletions

View File

@ -93,7 +93,7 @@ local function rebuild_popup()
layout = wibox.container.place, layout = wibox.container.place,
} }
checkbox:connect_signal("button::press", function(c) checkbox:connect_signal("button::press", function()
default_player = player_name default_player = player_name
rebuild_popup() rebuild_popup()
end) end)
@ -214,7 +214,8 @@ local function worker()
awful.spawn(PREV_MPD_CMD, false) -- scroll down awful.spawn(PREV_MPD_CMD, false) -- scroll down
end end
-- spawn.easy_async(string.format(GET_MPD_CMD, "'" .. default_player .. "'"), function(stdout, stderr, exitreason, exitcode) -- spawn.easy_async(string.format(GET_MPD_CMD, "'" .. default_player .. "'"),
-- function(stdout, stderr, exitreason, exitcode)
-- update_graphic(mpdarc, stdout, stderr, exitreason, exitcode) -- update_graphic(mpdarc, stdout, stderr, exitreason, exitcode)
-- end) -- end)
end) end)

View File

@ -97,7 +97,7 @@ local function worker(user_args)
end end
volumearc:connect_signal("button::press", button_press) volumearc:connect_signal("button::press", button_press)
local rebuild_widget = function(stdout, stderr) local rebuild_widget = function(stdout)
for i = 0, #rows do rows[i]=nil end for i = 0, #rows do rows[i]=nil end
for line in stdout:gmatch("[^\r\n]+") do for line in stdout:gmatch("[^\r\n]+") do