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

dcarroll dennis at rubgrp.com
Fri Jul 31 10:49:18 EDT 2009


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.)

What's more, once you're in the menu, it isn't necessary to hold down 
the W key. You can simply type the unmodified h/j/k/l keys. (Weird, but 
I'm not complaining.)

Sincerely,

-- Dennis



More information about the openbox mailing list