Skip to content

Instantly share code, notes, and snippets.

@SammysHP
Created May 1, 2013 17:35
Show Gist options
  • Save SammysHP/5496817 to your computer and use it in GitHub Desktop.
Save SammysHP/5496817 to your computer and use it in GitHub Desktop.
awesome, set client as slave
--------------------------------------------------------------------------------
-- Set the client as slave: put it at the end of other windows.
-- Backport from git (fa1ca807)
-- @param c The window to set as slave.
--------------------------------------------------------------------------------
function setslave(c)
local cls = capi.client.get(c.screen)
for k, v in pairs(cls) do
c:swap(v)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment