Search code examples
layoutluaawesome-wm

Awesome WM: Rearrange windows without changing layout


I'm entirely new to Awesome and Lua, but what I would like to achieve is to cycle through different arrangements of my windows within the same window-layout. Maybe I didn't use the correct search terms, but a simple Google search didn't yield anything helpful, and I don't want to take the time to study the Lua API to do it myself from scratch.

Say I have 3 tiles arranged like this in some arbitrary order:

+------+-------+
|      |       |
|      |       |
+------+       |
|      |       |
|      |       |
+------+-------+

Now I want to easily make the window that I'm focussing on appear in the big right-hand tile without cycling through all the different layouts using Super-Space.

Any thoughts on how to achieve this?


Solution

  • If I'm understanding your question correctly, you want the focused window to become the master window - correct? If so, you may want to have a look here: http://awesome.naquadah.org/wiki/Awesome_3.x#Window_manager_control. It says Mod4+control+return swaps focused client with master - which, as far as I can tell, is what you want to achieve (Mod4 is the super key).