The solution is the following:
Create your own Xmodmap:
xmodmap -pke > $HOME/.Xmodmap... edit using a text editor:
gedit $HOME/.XmodmapIn my case I wanted AltGr+i to produce the pipe, which is "bar" in xmodmap terminology, so I edited the line for keycode 31 as following:
keycode 31 = i I i I bar idotless... and then you can reload the configuration:
xmodmap $HOME/.XmodmapI did this on Ubuntu 9.04, Jaunty, but it should work on other versions as well. You can of course use the same method to configure your keyboard to do just about anything you want.



