I've got my laptop set up to boot directly into SLiM as the X session manager.
However, the "M" key on my laptop is broken. I've gotten around this when logged in by using xmodmap to remap my extraneous menu key to it.
keycode 135 = m I put a call to xmodmap in my .xinitrc file as so:
xmodmap ~/.xmodmaprc This works rather well once I'm logged in. However, my username contains an "m", so I can't type it in directly with the laptop keyboard. Adding a default_user line to my /etc/slim.conf works to allow me to login at least, but if I mistype my password, I have to plug in a USB keyboard or reboot the system entirely to get a second chance.
I found this question here on Stack Exchange, so I copied my .xmodmaprc file to the path it specified (`/etc/X11/Xmodmap). However, that did not work.
How can I get this to work system-wide? My distro is Arch, if that helps any.
xmodmapkicks in. Basically you should find the keyboard map files and change them instead so that when X starts up the keystrokes it gets will already match up with what you want without X having to do modifications. If I have time tomorrow night and this isn't answered by then maybe I'll find the details for you but you might search here for other questions about keyboard remapping, somewhere there are some answers with the details.xmodmapwhen it starts. But from a glance at the documentation, that doesn't seem to be a supported feature, which is a surprising omission. @MiffTheFox Write an xkb layout or variant to swapMwithMenu, and load that from/etc/X11/Xorg.conf.~/.xmodmaprcto~/.Xmodmapand see if there's a difference. I'm using Arch and my file is named.Xmodmap.