[openbox] [SOLVED] vim-style keybindings in Openbox menus

dcarroll dennis at rubgrp.com
Wed Aug 5 10:00:08 EDT 2009


Mikael Magnusson wrote:
> On Fri, 31 Jul 2009, vlad wrote:
> 
>> interesting,
>> On Fri, Jul 31, 2009 at 09:49:18AM -0500, dcarroll wrote:
>>> Area Man Taking His Keybindings Way Too Seriously, reads the headline in
>>> my imaginary hometown newspaper.
>>>
>>> My weekend science project: Figure out how to navigate the Openbox menus
>>> using vim-style keybindings (h/j/k/l) in place of the arrow keys.
>>>
>>> If anybody's interested, here's how I did it:
>>>
>>> - Mapped W-m to root-menu
>>> - Made sure none of my menu items began with h,j,k,or l.
>>> - Added the following to my .xinitrc file, and restarted X
>>> xmodmap -e "keysym j = j J j J idiaeresis Idiaeresis Down Down"
>>> xmodmap -e "keysym k = k K k K oe OE Up Up"
>>> xmodmap -e "keysym h = h H h H h H Left Left"
>>> xmodmap -e "keysym l = l L l L oslash Oslash Right Right"
>>>
>>> At this point, I am able to navigate the Openbox menus without moving my
>>> fingers from the home position on the keyboard. (Very cool.)
>>>
>> but doesn't this affect other applications?
> 
> Binding arrow keys to letter keys can wreak havoc with gtk+ apps (but i 
> haven't tried it in a few years, see 
> http://bugzilla.gnome.org/show_bug.cgi?id=131774)
> 
> -- 
> Mikael Magnusson
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox
> 

I haven't noticed any side-effects. And I certainly can't pretend to 
understand how or why it works. In fact I won't be surprised if it stops 
working some day. Just enjoying it while it lasts.

-- Dennis


More information about the openbox mailing list