I just posted about the new layout and the one thing I'm having a hard
time with is figuring out the "index" of the client window that is
currently selected.  I tried the following:

c = capi.client.focus
local clients = capi.client.get()
for k, cl in ipairs(clients) do
    if cl == c then
        w = k
    end
end

at the end of this, w should be the index of the window.

--
Donald

Attachment: pgpS2p5q8ae6X.pgp
Description: PGP signature

Reply via email to