I have a custom key mapping in the file ~/.Xmodmap which can be activated by running xmodmap ~/.Xmodmap.
However, I want this to happen automatically when I login. I have tried the following without success:
~/.xinitrcwith contentxmodmap ~/.Xmodmap, as suggested here~/.xsessionwith contentxmodmap ~/.Xmodmap, as suggested here~/.xsessionrcwith contentxmodmap ~/.Xmodmap, as suggested here
Obviously something is going wrong, but what? And how can I fix this?