Home | History | Annotate | Line # | Download | only in symbols
ctrl revision 1.1.1.7
      1  1.1.1.2   mrg // $XKeyboardConfig$
      2      1.1   mrg 
      3      1.1   mrg // $XFree86: xc/programs/xkbcomp/symbols/ctrl,v 3.2 2003/10/24 20:38:20 tsi Exp $
      4      1.1   mrg //
      5      1.1   mrg // eliminate the caps lock key completely (replace with control)
      6      1.1   mrg partial modifier_keys 
      7      1.1   mrg xkb_symbols "nocaps" {
      8  1.1.1.3  ghen     replace key <CAPS>	{  [ Control_L, Control_L ] };
      9      1.1   mrg     modifier_map  Control { <CAPS>, <LCTL> };
     10      1.1   mrg };
     11      1.1   mrg 
     12  1.1.1.7   mrg // replace left control with Meta
     13  1.1.1.7   mrg xkb_symbols "lctrl_meta" {
     14  1.1.1.7   mrg     replace key <LCTL>	{  [ Meta_L ] };
     15  1.1.1.7   mrg };
     16  1.1.1.7   mrg 
     17      1.1   mrg // swap the caps lock key with the left control key
     18      1.1   mrg partial modifier_keys 
     19      1.1   mrg xkb_symbols "swapcaps" {
     20  1.1.1.3  ghen     replace key <CAPS>	{  [ Control_L ] };
     21  1.1.1.3  ghen     replace key <LCTL>	{  [ Caps_Lock ] };
     22      1.1   mrg };
     23      1.1   mrg 
     24      1.1   mrg // moves the control key to the middle row and the caps lock
     25      1.1   mrg // to the bottom row.  Only works if the geometry or keycodes
     26      1.1   mrg // file has defined appropriate aliases for the keys in question.
     27      1.1   mrg partial modifier_keys 
     28      1.1   mrg xkb_symbols "ctrl_ac" {
     29  1.1.1.3  ghen     replace key <AC00>	{  [ Control_L ] };
     30  1.1.1.3  ghen     replace key <AA00>	{  [ Caps_Lock ] };
     31      1.1   mrg };
     32      1.1   mrg 
     33      1.1   mrg // Moves the control key to the bottom row and the caps lock
     34      1.1   mrg // to the middle row.  Only works if the geometry or keycodes
     35      1.1   mrg // file has defined appropriate aliases for the keys in question.
     36      1.1   mrg partial modifier_keys 
     37      1.1   mrg xkb_symbols "ctrl_aa" {
     38  1.1.1.3  ghen     replace key <AA00>	{  [ Control_L ] };
     39  1.1.1.3  ghen     replace key <AC00>	{  [ Caps_Lock ] };
     40      1.1   mrg };
     41      1.1   mrg 
     42      1.1   mrg // Right Ctrl works as Right Alt
     43      1.1   mrg partial modifier_keys 
     44      1.1   mrg xkb_symbols "ctrl_ra" {
     45      1.1   mrg     key <RCTL>	{  symbols[Group1]= [ Alt_R ] };
     46      1.1   mrg };
     47  1.1.1.6   mrg 
     48  1.1.1.6   mrg // Menu works as Right Ctrl
     49  1.1.1.6   mrg partial modifier_keys
     50  1.1.1.6   mrg xkb_symbols "ctrl_menu" {
     51  1.1.1.6   mrg   replace key <MENU> { [ Control_R, Control_R ] };
     52  1.1.1.6   mrg   modifier_map Control { Control_L, <MENU> };
     53  1.1.1.6   mrg };
     54