3 // $XFree86: xc/programs/xkbcomp/symbols/ctrl,v 3.2 2003/10/24 20:38:20 tsi Exp $
5 // eliminate the caps lock key completely (replace with control)
8 replace key <CAPS> { [ Control_L, Control_L ] };
9 modifier_map Control { <CAPS>, <LCTL> };
12 // replace left control with Meta
13 xkb_symbols "lctrl_meta" {
14 replace key <LCTL> { [ Meta_L ] };
17 // swap the caps lock key with the left control key
19 xkb_symbols "swapcaps" {
20 replace key <CAPS> { [ Control_L ] };
21 replace key <LCTL> { [ Caps_Lock ] };
24 // moves the control key to the middle row and the caps lock
25 // to the bottom row. Only works if the geometry or keycodes
26 // file has defined appropriate aliases for the keys in question.
28 xkb_symbols "ctrl_ac" {
29 replace key <AC00> { [ Control_L ] };
30 replace key <AA00> { [ Caps_Lock ] };
33 // Moves the control key to the bottom row and the caps lock
34 // to the middle row. Only works if the geometry or keycodes
35 // file has defined appropriate aliases for the keys in question.
37 xkb_symbols "ctrl_aa" {
38 replace key <AA00> { [ Control_L ] };
39 replace key <AC00> { [ Caps_Lock ] };
42 // Right Ctrl works as Right Alt
44 xkb_symbols "ctrl_ra" {
45 key <RCTL> { symbols[Group1]= [ Alt_R ] };
48 // Menu works as Right Ctrl
50 xkb_symbols "ctrl_menu" {
51 replace key <MENU> { [ Control_R, Control_R ] };
52 modifier_map Control { Control_L, <MENU> };