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