Is there a way to configure the caps lock button so it's not toggling? That is, so that it only applies the caps lock state while held down, and when released everything reverts to normal.
I am retrofitting a 1981 industrial keyboard as a USB device. It's working fine --- in fact, I'm typing on it right now.
However, the caps lock key (labelled ALPHA LOCK in the picture) is a hardware latching switch, so that if I press it once, and makes the contact and only breaks it when I press it again. From the perspective of the computer, it's another shift key.
However, I haven't found a way to set up X to support this. Caps Lock always appears to be handled via a software toggle. Combined with the hardware toggle this means I have to press the button twice to switch Caps Lock on and off, whic isn't ideal. Ideally there'd be a Caps Shift modifier that I could use, but I can't find one in xmodmap, and I'm not up to speed on xkb.
Does anyone know of any setting (however hidden) which might help here? I could just map it to another shift key, but that does't really produce the right effect.