|
|
This section provides a comprehensive example that ties together many of the concepts and procedures discussed in this chapter.
For the purposes of this example, let's assume you are accustomed to working from a terminal on which the left <Ctrl> key is directly above the left <Shift> key. However, you run your system from the console of a machine on which the <CapsLock> key is located where you expect the <Ctrl> key, and the <Ctrl> key is where you expect to find the <CapsLock> key. This example explains how you swap the function of these two keys.
This displays the keycode(s) to which the Caps_Lock keysym is attached. The output is similar to the following:
65 0xffe5 (Caps_Lock)
The output is similar to the following:
36 0xffe3 (Control_L)
The output indicates that the Control_L keysym is now attached to the keycode to which the Caps_Lock keysym was attached. The output is similar to the following:
36 0xffe3 (Control_L) 65 0xffe3 (Control_L)Note that you now need to attach the Caps_Lock keysym to the keycode to which the Control_L keysym was originally attached, which in this case is keycode 36.
The output should show the Caps_Lock keysym attached to the keycode to which the Control_L keysym was originally attached. The output should be similar to the following:
36 0xffe5 (Caps_Lock)
The output should show the Control_L keysym attached to the keycode to which the Caps_Lock keysym was originally attached. The output should be similar to the following:
65 0xffe3 (Control_L)