the ~/.xmodmaprc file is not loaded with the Xfce4 xsession. Reproducible: Always Steps to Reproduce: 1.set XSESSION to Xfce4 2.start X (I do it with the slim display manager) Actual Results: The .xmodmaprc file is not loaded Expected Results: .xmodmaprc should be loaded as it is for the "Xsession" session type (see /etc/X11/Sessions/Xsession) workaround : run manually xmodmap ~/.xmodmaprc (or add this in the autostart of XFce4)
I've never heard of "~/.xmodmaprc", but "~/.Xmodmap" should work if xmodmap is installed. Can you point me to a location where it's documented .xmodmaprc is a valid alternative to .Xmodmap?
x11-apps/xinit only supports .Xmodmap: $ qlist xinit | xargs grep xmodmaprc $ qlist xinit | xargs grep Xmodmap /etc/X11/xinit/xinitrc:usermodmap=$HOME/.Xmodmap /etc/X11/xinit/xinitrc:sysmodmap=/etc/X11/xinit/Xmodmap /etc/X11/Sessions/Xsession:usermodmap=$HOME/.Xmodmap /etc/X11/Sessions/Xsession:sysmodmap=/etc/X11/Xmodmap /etc/X11/Sessions/Xsession:rh6sysmodmap=/etc/X11/xinit/Xmodmap and so does Xfce4: $ qlist xfce-utils |xargs grep xmodmaprc $ qlist xfce-utils |xargs grep Xmodmap /etc/xdg/xfce4/xinitrc:test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap No references to xmodmaprc at all...
gdm also doesn't support .xmodmaprc, only .Xmodmap $ grep -r xmodmaprc * $ grep -r Xmodmap * config/Xsession.in:usermodmap="$HOME/.Xmodmap" config/Xsession.in:sysmodmap=/etc/X11/Xmodmap config/Xsession.in:rh6sysmodmap=/etc/X11/xinit/Xmodmap config/Init.in:sysmodmap=/etc/X11/Xmodmap so I think it's safe to close this...