My @ or 2 key is not working. I want to set it like, if user press Alt + a or something the 2 should be inserted to the active window. I have achieved this in windows using Auto It. In ubuntu i saw some solutions but couldn't do it. Any help would be appreciated. Or else i will be forced to move back to windows :-(
2 Answers
First install xbindkeys
and xte
by running:
sudo apt-get install xbindkeys xautomation
Create the
xbindkeys
configuration file:xbindkeys --defaults > $HOME/.xbindkeysrc
Next we need to edit the file. Run
gedit .xbindkeysrc
Add this to the bottom of the file:
"xte 'key 2'" m:0x18 + c:38 Alt+Mod2 + a
Save the file.
Open "Startup Applications" from the dash, and click "Add".
Put
/usr/bin/xbindkeys
and click "Add".Restart the computer.
Your 2 key should now be bound to Alt + a.
Have you tried the program "Xmodmap"? Look at the documentation and if something is unclear ask again. Btw, a new keyboard shouldn't be to expensive...
-
Its my friends laptop, and she can't afford a orginal keyboard for atleast next few months.– esafwanNov 30, 2011 at 11:32