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

Mikael Magnusson lists at bad.disgui.se
Fri Jul 31 12:04:02 EDT 2009


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


More information about the openbox mailing list