I've read that /etc/X11/Xmodmap is the right place to put system-wide xmodmap settings. (It's kinda ugly to make the mouse buttons work on a user-by-user basis.) But nothing reads this when KDE starts up, so I have to add a command "xmodmap /etc/X11/Xmodmap" in my ~/.kde/Autostart/. I don't believe it works to put the commands in ~/.Xmodmap either. Reproducible: Always Steps to Reproduce: 1. Put something you need in /etc/X11/Xmodmap, (e.g. pointer = 1 2 3 6 4 5) 2. Start KDE Actual Results: The settings haven't been used (e.g. the mouse buttons aren't right). Expected Results: The settings should have been used. tom@eggbert Autostart $ emerge -pv xorg-x11 kde These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] x11-base/xorg-x11-6.8.1.902 (-3dfx) (-3dnow) +bitmap-fonts -cjk -debug -dlloader -dmx -doc +font-server -hardened -insecure-drivers +ipv6 -minimal (-mmx) +nls +opengl +pam -sdk (-sse) -static +truetype-fonts +type1-fonts (-uclibc)-xprint +xv 0 kB [ebuild R ] kde-base/kde-3.3.2 0 kB Total size of downloads: 0 kB
Do you start the X server with 'startx', or with kdm/gdm?
I use KDM.
kdm has it's own method of starting the X server, which we don't customize. I don't if it worth customizing it to read /etc/X11/Xmodmap, since by default on Gentoo there's no default Xmodmap. On the other side, you can make system-level customization by adding files to /usr/kde/3.x/env/, that get sourced at startup.
I think that /usr/kde/3.x/env/ is the way to go, it gives the possibility to customize at system level without modifying how kdm works...