I am using Ubuntu 12.04, my TAB key is not working and I want to use auto complete function. Is there any way I could assign other key for the same function in Ubuntu manually? I looked into the keyboard layout but I couldn't able to figure it out, Is it possible ?
For assign certain key to other, you need two tools, already available in ubuntu:
xev you can output some information about the pressed key, or with
you can read all the configured key, keycode and action.
xmodmap you can change key map.
For example, this command assign tab action to backspace key (keycode 22):
xmodmap -e "keycode 22 = Tab"
to reassign to backspace is natural function, type:
xmodmap -e "keycode 22 = BackSpace"
These change will be lost after reboot. if you want that the changes are always loaded, you must create a file containing the keyboard mapping and load when the session start:
xmodmap -pke > ~/.Xmodmap (create file configuration .Xmodmap in your home directory)
then create file
.xinitrc in your home directory (if not exists) and add this line (or append if file exists):
this command loads the configuration at the start of each session.
You can create keyboard shortcuts by installing AutoKey from software center. After install, run autokey and create new phrase like this:
the key combination Alt+a will emulate the tab key.