adding all-important option files
[xorg/xkeyboard-config] / symbols / ctrl
1 // $XFree86: xc/programs/xkbcomp/symbols/ctrl,v 3.2 2003/10/24 20:38:20 tsi Exp $
2 //
3 // eliminate the caps lock key completely (replace with control)
4 partial modifier_keys 
5 xkb_symbols "nocaps" {
6     key <CAPS>  {  symbols[Group1]= [ Control_L ] };
7     modifier_map  Control { <CAPS>, <LCTL> };
8 };
9
10 // swap the caps lock key with the left control key
11 partial modifier_keys 
12 xkb_symbols "swapcaps" {
13     key <CAPS>  {  symbols[Group1]= [ Control_L ] };
14     key <LCTL>  {  symbols[Group1]= [ Caps_Lock ] };
15 };
16
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.
20 partial modifier_keys 
21 xkb_symbols "ctrl_ac" {
22     key <AC00>  {  symbols[Group1]= [ Control_L ] };
23     key <AA00>  {  symbols[Group1]= [ Caps_Lock ] };
24 };
25
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.
29 partial modifier_keys 
30 xkb_symbols "ctrl_aa" {
31     key <AA00>  {  symbols[Group1]= [ Control_L ] };
32     key <AC00>  {  symbols[Group1]= [ Caps_Lock ] };
33 };
34
35 // Right Ctrl works as Right Alt
36 partial modifier_keys 
37 xkb_symbols "ctrl_ra" {
38     key <RCTL>  {  symbols[Group1]= [ Alt_R ] };
39 };