Home | History | Annotate | Line # | Download | only in symbols
ctrl revision 1.1.1.6
      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)
      6 partial modifier_keys 
      7 xkb_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
     13 partial modifier_keys 
     14 xkb_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.
     22 partial modifier_keys 
     23 xkb_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.
     31 partial modifier_keys 
     32 xkb_symbols "ctrl_aa" {
     33     replace key <AA00>	{  [ Control_L ] };
     34     replace key <AC00>	{  [ Caps_Lock ] };
     35 };
     36 
     37 // Right Ctrl works as Right Alt
     38 partial modifier_keys 
     39 xkb_symbols "ctrl_ra" {
     40     key <RCTL>	{  symbols[Group1]= [ Alt_R ] };
     41 };
     42 
     43 // Menu works as Right Ctrl
     44 partial modifier_keys
     45 xkb_symbols "ctrl_menu" {
     46   replace key <MENU> { [ Control_R, Control_R ] };
     47   modifier_map Control { Control_L, <MENU> };
     48 };
     49