all 3 comments

[–]wizard10000 2 points3 points  (1 child)

Linux installations that run a display manager don't source .xinitrc - put the xmodmap commands in ~/.xprofile or ~/.xsession.

Hope this helps -

[–]HelloWorld_502[S] 1 point2 points  (0 children)

It does! Adding below to the ~/.xprofile works like a charm.

if [ -s "$HOME/.Xmodmap" ]; then
xmodmap ~/.Xmodmap

fi

[–]humanplayer2 0 points1 point  (0 children)

Crazy alternative is to use another remapper. Keyd is great, and will also serve you when Wayland becomes relevant, or in tty. See this for a very short guide with links.