Only run xmodmap in .xinitrc if you have the executable installed in your PATH.