General,
You are restarting X every time?
Activating the .Xmodmap at startup
Some distributions automatically load the ~/.Xmodmap when a user logs on in X - if yours does, consider yourself happy. One of the distris which doesn't do it is Gentoo, while SuSE does.
Here is how you get it loaded automatically: You've got to open
$KDEDIR/share/config/kdm/Xsession
and insert the following code at the beginning of the file (but after the shebang #!/bin/sh):
if [ -f $HOME/.Xmodmap ]; then
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
fi
Now save, logout and log in again. Your modmap should have been loaded now.
Source:
http://cweiske.de/howto/xmodmap/alli...tml#ownxmodmap
hope this Helps,
Jake