[docker] fix #242
This commit is contained in:
parent
4730492723
commit
ac8b1dd43f
|
@ -157,7 +157,7 @@ local function worker(user_args)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
start_stop_button:buttons(
|
start_stop_button:buttons(
|
||||||
awful.util.table.join( awful.button({}, 1, function()
|
gears.table.join( awful.button({}, 1, function()
|
||||||
local command
|
local command
|
||||||
if container:is_up() then command = 'stop' else command = 'start' end
|
if container:is_up() then command = 'stop' else command = 'start' end
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ local function worker(user_args)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
pause_unpause_button:buttons(
|
pause_unpause_button:buttons(
|
||||||
awful.util.table.join( awful.button({}, 1, function()
|
gears.table.join( awful.button({}, 1, function()
|
||||||
local command
|
local command
|
||||||
if container:is_paused() then command = 'unpause' else command = 'pause' end
|
if container:is_paused() then command = 'unpause' else command = 'pause' end
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ local function worker(user_args)
|
||||||
widget = wibox.container.background
|
widget = wibox.container.background
|
||||||
}
|
}
|
||||||
delete_button:buttons(
|
delete_button:buttons(
|
||||||
awful.util.table.join( awful.button({}, 1, function()
|
gears.table.join( awful.button({}, 1, function()
|
||||||
awful.spawn.easy_async('docker rm ' .. container['name'], function(_, rm_stderr)
|
awful.spawn.easy_async('docker rm ' .. container['name'], function(_, rm_stderr)
|
||||||
if rm_stderr ~= '' then show_warning(rm_stderr) end
|
if rm_stderr ~= '' then show_warning(rm_stderr) end
|
||||||
spawn.easy_async(string.format(LIST_CONTAINERS_CMD, number_of_containers),
|
spawn.easy_async(string.format(LIST_CONTAINERS_CMD, number_of_containers),
|
||||||
|
@ -351,7 +351,7 @@ local function worker(user_args)
|
||||||
end
|
end
|
||||||
|
|
||||||
docker_widget:buttons(
|
docker_widget:buttons(
|
||||||
awful.util.table.join(
|
gears.table.join(
|
||||||
awful.button({}, 1, function()
|
awful.button({}, 1, function()
|
||||||
if popup.visible then
|
if popup.visible then
|
||||||
popup.visible = not popup.visible
|
popup.visible = not popup.visible
|
||||||
|
|
Loading…
Reference in New Issue