Discussion:
Flip windows, not frames
Oskar Nordquist
2009-09-02 13:06:18 UTC
Permalink
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
Ole Jørgen Brønner
2009-09-02 18:46:57 UTC
Permalink
On Wed, 02 Sep 2009 15:06:18 +0200, Oskar Nordquist
Post by Oskar Nordquist
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)
Oskar Nordquist
2009-09-04 21:17:06 UTC
Permalink
Thank you!

I actually found out a more general way to do it based on the
"move_current.lua" script that moves a window in current frame to
another frame in a specified direction, only I swap the windows inside
them instead.
Post by Ole Jørgen Brønner
On Wed, 02 Sep 2009 15:06:18 +0200, Oskar Nordquist
Post by Oskar Nordquist
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)
Loading...