I'm using a German keyboard in Ubuntu. As we need the slash on the console quite often and it is somewhat awkward to type on a German keyboard, I'd like to assign the / key to the unused Caps Lock key.

Does anyone know how to do this?

link|improve this question
feedback

migrated from stackoverflow.com Aug 3 '11 at 13:04

This question came from our site for professional and enthusiast programmers.

2 Answers

You can always do it with 'xmodmap'.

Hope these links are useful,

http://askubuntu.com/questions/24916/how-do-i-remap-certain-keys

http://www.linuxscrew.com/2008/09/15/faq-how-to-disableremap-a-keyboard-key-in-linux/

FYI,

Caps Lock: keycode 66

Slash : keycode 61

link|improve this answer
feedback

thanks a lot ysrini. works perfectly...

here are the exact commands:

cd ~
xmodmap -e "keycode 66 = slash"
`xmodmap -pke > .Xmodmap`
echo "xmodmap .Xmodmap" >> .xinitrc
link|improve this answer
feedback

Your Answer

 
or
required, but never shown