Hi.

On Thu 2009-05-21 22:05, Josh Rickmar <[email protected]>
proclaimed:
>> Isn't this the same thing as the default key bindings of meta-H and meta-L ? 
>> I
>> would think it should be reasonably easy to add this functionality to the 
>> other
>> layouts, unless the underlining wm doesn't support it.
>
> Well, not quite the same, but I am looking for a similar solution.
> modkey+H and modkey+L change the master area, not the sizes between
> clients in the stacking area.
>
> Consider the following layout:
>
> +------+------+
> |      |  2   |
> |      |      |
> |  1   +------+
> |      |  3   |
> |      |      |
> +------+------+
>
> Let's say I wanted to make client 2 larger vertically.  To do this, the
> line between clients 2 and 3 needs to change.
>
> +------+------+
> |      |      |
> |      |  2   |
> |  1   |      |
> |      +------+
> |      |  3   |
> +------+------+
>
> modkey+H and modkey+L won't help here, because that only changes the
> master and stacking areas.  However, this is possible using the mouse.

In analogy to the default mod-H/L bindings, you can add those to
de-/increase the size of client in the slave column:

    awful.key({ modkey, "Shift" }, "k", 
        function () awful.client.incwfact(0.05) end),
    awful.key({ modkey, "Shift" }, "j", 
        function () awful.client.incwfact(-0.05) end),


While I can do all the resizing with key bindings this way, I am still
not satisfied with it - I often confuse the whole h/j/k/l resizing
bindings, because they are not consistent with my client focusing key
bindings - I use focus.bydirection() there, so the focus works like
this:

       <-h  l->
    +------+------+ 
    |      |  2   |  ^
    |      |      |  k
    |  1   +------+
    |      |  3   |  j
    |      |      |  v
    +------+------+

There a two problems with the resizing:

1) I would expect that mod+J would make client 2 bigger, when it has
   focus, because that is the direction it will grow. I would really
   like to have some kind of client.resizebydirection("down", factor).

2) It is completely weird to use in a tile.bottom/top layout. I get:

         <-J K->
    +--------------+ ^      [2] has focus
    |  [2]  |  3   | L
    +--------------+
    |              | H
    |      1       | v
    |              |
    +--------------+

  This just drives me nuts every time I try to use it.

I guess I could add some ugly checking for the layout and the position
of the focussed client in the key bindings, but I was both too lazy and
afraid that it would become a big ugly hack to actually do it.


Greetings,
Frank

-- 
Frank Blendinger | fb(at)intoxicatedmind.net | GPG: 0x0BF2FE7A
Fingerprint: BB64 F2B8 DFD8 BF90 0F2E 892B 72CF 7A41 0BF2 FE7A

Attachment: signature.asc
Description: Digital signature

Reply via email to