Due to a coffee accident some numbers of my laptop's keyboard stopped working. I used xmodmap to use F1, F2, etc, as replacements and saved the configs to ~/.Xmodmap.
However, that caused a few problems.
I don't always use X on this computer, and without starting X
xmodmapdoes not apply.It causes X to take more time to start.
For some reason it caused XFCE keyboard shortcuts that had nothing to do with any of the keys changed via
xmodmapto stop working (in fact, all keyboard shortcuts stopped working, except for the window manager shortcuts). After a few minutes passed since I start X, the XFCE shortcuts start working normally again! This lag isn't very annoying, but is also an issue.
I imagine there is some kind of mapping that is read by the OS before X starts. Isn't there a way to change that mapping? Is it any way to change the keyboard mapping w/o using X tools? Im using Debian stable.
PS: Apparently the file that calls xmodmap .Xmodmap on startx is /etc/xdg/xfce4/xinitrc. It's contents can be found here.