[openbox] [Patch] Custom move/resize keybindings

Robbie Smith zoqaeski at gmail.com
Sun May 13 19:48:13 EDT 2012


On 13/05/12 23:22, Martin Lucina wrote:
> Hi,
>
> rephorm at rephorm.com said:
>> The attached patch adds the ability to customize move/resize 'arrow' key
>> bindings. For example, if one wants vim bindings the following works:
>>
>> <keyboard>
>>    <!-- ... -->
>>    <moveresize>
>>      <left>h</left>
>>      <right>l</right>
>>      <down>j</down>
>>      <up>k</up>
>>    </moveresize>
>> </keyboard>
>>
>> By default, the normal arrow keys are used.
>
> How is this an improvement over and above the existing chroot support?
>
>     <keybind key="W-m" chroot="true">
>        <keybind key="h">
>          <action name="MoveToEdgeWest"/>
>        </keybind>
>        <keybind key="j">
>          <action name="MoveToEdgeSouth"/>
>        </keybind>
>        <keybind key="k">
>          <action name="MoveToEdgeNorth"/>
>        </keybind>
>        <keybind key="l">
>          <action name="MoveToEdgeEast"/>
>        </keybind>
>        <keybind key="Escape">
>          <action name="BreakChroot"/>
>        </keybind>
>      </keybind>
>
> I think you might have missed this functionality.
>
> -mato

I like it. The chroot functionality is extremely useful, but if you want 
to have the same movement keys everywhere then it adds a lot of bloat to 
the configuration. I think I've got something similar to mato's example 
in at least two or three places in my rc.xml, because I use movement 
keys to resize and move windows.

Robbie


More information about the openbox mailing list