>> Given all the currently visible clients, as per:
>> awful.client.visible(client.focus.screen), I would like to arbitrarily pick
>> a client by index, put this client first in the list, and shift the other
>> clients in the list accordingly (as needed). Any tips?
>
> Try this:
>
>       idx = 3 -- whereever your client is
>       c = awful.client.visible(client.focus.screen)
>       c[idx]:swap(c[1])

This will only swap client idx with the first one. Not shift the other clients
accordingly. But now I see that what I probably need to do is repeatedly

   c[idx]:swap(c[idx-1])

while decreasing idx and idx==2. I will give that a try later.


-- 
To unsubscribe, send mail to [email protected].

Reply via email to