1 // $XFree86: xc/programs/xkbcomp/symbols/ctrl,v 3.2 2003/10/24 20:38:20 tsi Exp $
3 // eliminate the caps lock key completely (replace with control)
6 key <CAPS> { symbols[Group1]= [ Control_L ] };
7 modifier_map Control { <CAPS>, <LCTL> };
10 // swap the caps lock key with the left control key
12 xkb_symbols "swapcaps" {
13 key <CAPS> { symbols[Group1]= [ Control_L ] };
14 key <LCTL> { symbols[Group1]= [ Caps_Lock ] };
17 // moves the control key to the middle row and the caps lock
18 // to the bottom row. Only works if the geometry or keycodes
19 // file has defined appropriate aliases for the keys in question.
21 xkb_symbols "ctrl_ac" {
22 key <AC00> { symbols[Group1]= [ Control_L ] };
23 key <AA00> { symbols[Group1]= [ Caps_Lock ] };
26 // Moves the control key to the bottom row and the caps lock
27 // to the middle row. Only works if the geometry or keycodes
28 // file has defined appropriate aliases for the keys in question.
30 xkb_symbols "ctrl_aa" {
31 key <AA00> { symbols[Group1]= [ Control_L ] };
32 key <AC00> { symbols[Group1]= [ Caps_Lock ] };
35 // Right Ctrl works as Right Alt
37 xkb_symbols "ctrl_ra" {
38 key <RCTL> { symbols[Group1]= [ Alt_R ] };