xsessionrc and xmodmap

less than 1 minute read

In order to have your xmodmap commands take effect, put them in .xsessionrc, NOT .xinitrc. Take a look at this. Also, man xmodmap for a few examples of remapping keys.