3

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

Radu Rădeanu
  • 169,590
oblitum
  • 1,687
  • 2
  • 16
  • 27

1 Answers1

3

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
Radu Rădeanu
  • 169,590
  • 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. – oblitum Dec 07 '13 at 17:08
  • @chico Try to chmod 755 ~/.xinitrc and see if the problem persists. – Radu Rădeanu Dec 07 '13 at 17:48