0

Is it a way in ubuntu linux to remap single key (for example, Alt_R) to keys combination (for example, Up)?

grigoryvp
  • 3,655
  • 11
  • 39
  • 59

3 Answers3

2

The command you want to examine is xmodmap. You can modify your keys as you wish; if you add the key settings to a file in your home directory (like .xmodmaprc) it will take effect on login as long as you run xmodmap with that file. You can also set the settings on the fly. Using the man (or xman) command will show you more information.

There are also graphical interfaces that do the same thing for both GNOME and KDE, though I don't know what they are.

Mei
  • 4,590
  • 8
  • 45
  • 53
0

Take a look at xmodmap then at the following guide on how to enable it on login

katriel
  • 4,477
  • 23
  • 20
0

I've found that xev is a useful program to get key codes when making rules for xmodmap.

Also, note that Alt_R is a modifer key; you will have to use the "remove" command to make it a non-modifier key before you can use a "keycode" or "keysym" command on it.

cjs
  • 1,385
  • 1
  • 12
  • 23