HP (Hewlett-Packard) HP-UX Time Clock User Manual


 
For example, on a PC-style keyboard, you can press
to print a lower case "d", to print a
capital "D", to print something else, and
to print still something else.
The xmodmap client gives you the power to change the meaning of any key at any time or to install a
whole new key map for your keyboard.
Examples
Suppose you frequently press the key at the most inopportune moments. You could remove the lock
key from the lock modifier, swap it for the key, then map the key to the lock modifier. Do this by
creating a little swapper file that contains the following lines:
!This file swaps the [Caps] key with the [F1] key.
remove Lock = Caps_Lock
keysym Caps_Lock = F1
keysym F1 = Caps_Lock
add Lock = Caps_Lock
____________________________________________________________________________________
Note: The use of the ! in the file to start a comment line. To put your "swapper" file into effect, enter
the following on the command line:
____________________________________________________________________________________
xmodmap swapper
If you use such a swapper file, you should probably have an unswapper file. The following file enables
you to swap back to the original keyboard mapping without having to exit X11:
!This file unswaps the [F1] key with the [Caps] key.
remove Lock = Caps_Lock
keycode 88 = F1
keycode 55 = Caps_Lock
add Lock = Caps_Lock
____________________________________________________________________________________
Note: The use of the hexadecimal values to reinitialize the keycodes to the proper key symbols. You
put your "unswapper" file into effect by entering the following command line:
xmodmap unswapper
____________________________________________________________________________________
On a larger scale, you can change your current keyboard to a Dvorak keyboard by creating a file with
the appropriate keyboard mappings.
xmodmap .keymap
Graphics Administration Guide for HP-UX 10.20
Page 99