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:
~/.xinitrc
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsession
with contentxmodmap ~/.Xmodmap
, as suggested here~/.xsessionrc
with contentxmodmap ~/.Xmodmap
, as suggested here
Obviously something is going wrong, but what? And how can I fix this?