On Wed, Nov 09, 2011 at 01:48:03PM +0000, Daniel wrote: > 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])
--
Gregor Best
pgpjiQ0Bee5a1.pgp
Description: PGP signature
