ctrl revision c067fea9
15a35480eSmrg// $XKeyboardConfig$ 2154daed1Smrg 3154daed1Smrg// $XFree86: xc/programs/xkbcomp/symbols/ctrl,v 3.2 2003/10/24 20:38:20 tsi Exp $ 4154daed1Smrg// 5154daed1Smrg// eliminate the caps lock key completely (replace with control) 6154daed1Smrgpartial modifier_keys 7154daed1Smrgxkb_symbols "nocaps" { 8c067fea9Sghen replace key <CAPS> { [ Control_L, Control_L ] }; 9154daed1Smrg modifier_map Control { <CAPS>, <LCTL> }; 10154daed1Smrg}; 11154daed1Smrg 12154daed1Smrg// swap the caps lock key with the left control key 13154daed1Smrgpartial modifier_keys 14154daed1Smrgxkb_symbols "swapcaps" { 15c067fea9Sghen replace key <CAPS> { [ Control_L ] }; 16c067fea9Sghen replace key <LCTL> { [ Caps_Lock ] }; 17154daed1Smrg}; 18154daed1Smrg 19154daed1Smrg// moves the control key to the middle row and the caps lock 20154daed1Smrg// to the bottom row. Only works if the geometry or keycodes 21154daed1Smrg// file has defined appropriate aliases for the keys in question. 22154daed1Smrgpartial modifier_keys 23154daed1Smrgxkb_symbols "ctrl_ac" { 24c067fea9Sghen replace key <AC00> { [ Control_L ] }; 25c067fea9Sghen replace key <AA00> { [ Caps_Lock ] }; 26154daed1Smrg}; 27154daed1Smrg 28154daed1Smrg// Moves the control key to the bottom row and the caps lock 29154daed1Smrg// to the middle row. Only works if the geometry or keycodes 30154daed1Smrg// file has defined appropriate aliases for the keys in question. 31154daed1Smrgpartial modifier_keys 32154daed1Smrgxkb_symbols "ctrl_aa" { 33c067fea9Sghen replace key <AA00> { [ Control_L ] }; 34c067fea9Sghen replace key <AC00> { [ Caps_Lock ] }; 35154daed1Smrg}; 36154daed1Smrg 37154daed1Smrg// Right Ctrl works as Right Alt 38154daed1Smrgpartial modifier_keys 39154daed1Smrgxkb_symbols "ctrl_ra" { 40154daed1Smrg key <RCTL> { symbols[Group1]= [ Alt_R ] }; 41154daed1Smrg}; 42