ctrl revision da6c6c0b
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// replace left control with Meta
13xkb_symbols "lctrl_meta" {
14    replace key <LCTL>	{  [ Meta_L ] };
15};
16
17// swap the caps lock key with the left control key
18partial modifier_keys 
19xkb_symbols "swapcaps" {
20    replace key <CAPS>	{  [ Control_L ] };
21    replace key <LCTL>	{  [ Caps_Lock ] };
22};
23
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.
27partial modifier_keys 
28xkb_symbols "ctrl_ac" {
29    replace key <AC00>	{  [ Control_L ] };
30    replace key <AA00>	{  [ Caps_Lock ] };
31};
32
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.
36partial modifier_keys 
37xkb_symbols "ctrl_aa" {
38    replace key <AA00>	{  [ Control_L ] };
39    replace key <AC00>	{  [ Caps_Lock ] };
40};
41
42// Right Ctrl works as Right Alt
43partial modifier_keys 
44xkb_symbols "ctrl_ra" {
45    key <RCTL>	{  symbols[Group1]= [ Alt_R ] };
46};
47
48// Menu works as Right Ctrl
49partial modifier_keys
50xkb_symbols "ctrl_menu" {
51  replace key <MENU> { [ Control_R, Control_R ] };
52  modifier_map Control { Control_L, <MENU> };
53};
54