[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] [SOLVED] vim-style keybindings in Openbox menus
From:       lists () bad ! disgui ! se (Mikael Magnusson)
Date:       2009-07-31 16:04:02
Message-ID: alpine.LNX.2.00.0907311801030.15894 () localhost
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic