Mapping Super+hjkl to arrow keys under X
- by Bill Casarin
I'm trying to map:
Super+h -> Left
Super+j -> Down
Super+k -> Up
Super+l -> Right
globally under X. The idea is I don't want to leave my home row that often to use the arrow keys, so I'll use the Super modifier + hjkl to emulate the arrow keys under X. Is there any way to do this?
One thing I've tried is xbindkeys + xte using this configuration:
"xte 'keydown Up' 'keyup Up'"
Mod4+k
"xte 'keydown Down' 'keyup Down'"
Mod4+j
"xte 'keydown Left' 'keyup Left'"
Mod4+h
"xte 'keydown Right' 'keyup Right'"
Mod4+l
but there seems to a large delay between me pressing the key and noticing any result, and most of the time nothing happens at all.
Is there a more elegant way of doing this that actually works with no delay?