Re: Flip windows, not frames

Ole Jørgen Brønner <[email protected]> Wed, 02 Sep 2009 20:46:57 +0200
Newsgroups gmane.comp.window-managers.ion.general
Message-ID <op.uzm7shb0vocxtk@tabole-debian>
On Wed, 02 Sep 2009 15:06:18 +0200, Oskar Nordquist  
<[email protected]> wrote:

> Hi,
>
> When flipping using WTiling.flip_at(), frames are flipped. I'd like to
> have a similar functionality when the frames are intact, but the
> active windows/clients inside are flipped to each ones frame. Is this
> possible?
>
> Regards,
> Oskar

I thought I wanted this some time ago so I wrote some utility functions
to do it. (attached) It's very crude though. Only for left/right and it
pretty much assumes only one horizontal split I think.

I never really used it much so I haven't bothered to improve it.

As you can see from the code it's pretty trival to do.
(it's only swap_lr and swap that's important)
move_bindings.lua (application/octet-stream, 2.6 KB) - not displayed