5

In my .xbindkeysrc I'm trying to bind Alt+L to the Up arrow key.

xvkbd works okay in some places, but doesn't send anything at all in the terminal. For example:

"xvkbd  -xsendevent -text "\[Up]""
    Alt + l

xdotool works in the terminal, but only sends the Up key once, because I had to add + Release, otherwise it triggers too early or something and always sends nothing:

"xdotool key --clearmodifiers Up"
    Alt + l + Release

Neither of these solutions are very good. I just want J, K, L, ; to be arrow keys while Alt is held down.

Farzher
  • 295
  • 1
  • 4
  • 14
  • Perhaps this will help http://askubuntu.com/questions/325272/permanent-xmodmap-in-ubuntu-13-04 – TuKsn May 09 '14 at 10:00
  • @Xubu-Tur I've swapped keys with xmodmap np, the problem with that though is I can't swap keys ONLY while alt is down. – Farzher May 09 '14 at 14:25

1 Answers1

1

Try:

"xset r off; xdotool keyup --window 0 l key --window 0 --clearmodifiers Up; xset r on"
    Alt + l
midenok
  • 792
  • 1
  • 8
  • 13