How can I move keys around on a Sun keyboard, for example exchanging the Caps Lock and Control keys on a Type 5 keyboard?
It depends on which window system you’re running, if any. If you’re not using any window system, or you’re using a window system such as SunView that uses the OS’s keyboard event translation mechanism, you can dump the tables used by the OS’s keyboard event translation mechanism with the “dumpkeys” command, and load changes to that table with the “loadkeys” command; see LOADKEYS(1). If you’re using X11 – either in its MIT incarnation, or Sun’s Open Windows incarnation – or some other window system that shuts off the OS’s keyboard event translation mechanism, you need to use the window system’s commands, if any, for that function. In X11, the command for that is “xmodmap”; its translation tables can be printed with “xmodmap -pk”, and changes to that table can be loaded with “xmodmap” as well. NOTE: in the particular case of the Control and Caps Lock keys, while MIT X appears to handle interchanging those two keys correctly, so that the new Caps Lock key is a toggle and the new Control k
Related Questions
- How can I move keys around on a Sun keyboard, for example exchanging the Caps Lock and Control keys on a Type 5 keyboard?
- I have a Type 5 keyboard, and find its placement of the Caps Lock, Control, and Esc keys inconvenient. How do I remedy this?
- How do I swap the CAPS LOCK and CONTROL keys on a type 5 keyboard under Openwindows 3.0?