-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Am 13.12.2010 13:54, Daniel wrote:
> 1) A key (typically Alt-Tab) to swap between master window and the
> top-most window in the right stack (called slaves in awesome?).
> Leaving focus still in the master window.

In the default config, mod+shift+j swaps the current client with the next one
via this code:

function()
awful.client.swap.byidx(1)
end

Focusing the previous client is done via mod+k:

function()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise()
end

We could combine the two to hopefully archive what you want:

function()
awful.client.swap.byidx(1)
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise()
end

> 2) A key (Shift-Alt-Tab) to cycle clockwise by moving bottom window
> from right stack into master position, and the master window to top-
> position on the right; shifting all windows around.
> Still leaving focus in master window.
>
> I tried fiddling a little bit with existing client swap functions, but
> I'm just a beginner with lua and the whole system...

Uhm, ok, this might be a littler harder.

We begin in this situation (first client is the master one):
[A] B C D E F

We want to reach this situation:
[F] A B C D E

All we can do is swapping two clients. Uhm...
Easiest way might be just swapping [A] through all the other clients in revese
order (untested).

function()
  local t = awful.client.tiled(1)
  if #t == 0 then return end -- nothing to do
  local master = table.remove(t, 1)
  t = awful.util.table.reverse(t)
  for _, c in pairs(t) do
    master:swap(t)
  end
end

> many thanks
> 
> (On a side note, I also wonder if awesome supports NOT resizing windows
> while they reside in the right stack, so that when they are moved to master
> position, they will have kept their contents (in case of programs/window
> which are not able to redraw themselves properly, typically any kind of
> text left in an xterm after a program quit. Also programs which take lots
> of time or effort when they are resized will be kept calm)

You could create your own layout that does something like this. Just requires
finding the right code, copying it to a new place and removing everything which
resizes clients.

Uli

- -- 
- - Buck, when, exactly, did you lose your mind?
- - Three months ago. I woke up one morning married to a pineapple.
  An ugly pineapple... But I loved her
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJNBlU+AAoJECLkKOvLj8sG2WUH/39BL+sccANgsIBqTcd3EDtC
a70abM/NKtTV4IsXIKjPHPSkBDAjJwryaVnVBibCQ+uyMSFBA81CNBGefYjHg7X7
xFk0I2bbJVKAgY8HcfnpE7t7JMEKNFSlqEeaK/K0/LAwlsaXKBFxnQ3W6hkdF6c1
FEdn3E1ema3UwydivWQOwwG26Vzxu5tgVq8R8fRpkRFpRV4G/YWhzs5tOapJp+kW
vS25oX5iKkZ6hqtbO7MMfWtfvi85YZRpdePDVqh30lMmT//8iHrLCmUmcHH5FywH
lVWu3PiG0bPo1/qtdwF6+uH8kOCPFG44jZXMMdBTqlpX8AEfQ8SYlqv3Z9XxpY4=
=njLf
-----END PGP SIGNATURE-----

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

Reply via email to