2

How to map Shift_R to slash (/) using xmodmap?

marked as duplicate by Seth, Warren Hill, kiri, user117103, Eric Carvalho Dec 8 '13 at 0:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

You can use the following command:

xmodmap -e "keycode 62 = slash question slash question" #this will make Shift_R to act as slash

To get this change for every session, after you have run the ​​previous command, create a file called .xmodmap with the new keymaps, using the following command:

xmodmap -pke > .xmodmap

Then, create a file called .xinitrc in your home directory, containing the following line/command:

xmodmap .xmodmap
  • I just restared my system (ubuntu 13.04) and the .xinitrc part didn't work. By now I'm going to ad xmodmap .xmodmap to session applications list. If you know the issue please updade. Thanks. – pepper_chico Dec 7 '13 at 17:08
  • @chico Try to chmod 755 ~/.xinitrc and see if the problem persists. – Radu Rădeanu Dec 7 '13 at 17:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.