Posts: 1,308
BitJam
Joined: 31 Aug 2009
#1
Add the following boot parameter to turn the CapsLock key into an additional Control key:

Code: Select all

kbopt=ctrl:nocaps
This changes the virtual consoles as well as X-windows.

Some other options are:

Code: Select all

  ctrl:lctrl_meta      Left Ctrl as Meta
  ctrl:swapcaps        Swap Ctrl and Caps Lock
  ctrl:ac_ctrl         At left of 'A'
  ctrl:aa_ctrl         At bottom left
  ctrl:rctrl_ralt      Right Ctrl as Right Alt
  ctrl:menu_rctrl      Menu as Right Ctrl
  ctrl:ctrl_ralt       Right Alt as Right Ctrl
  caps:capslock        Caps Lock toggles normal capitalization of alphabetic characters
  caps:numlock         Make Caps Lock an additional Num Lock
  caps:swapescape      Swap ESC and Caps Lock
  caps:escape          Make Caps Lock an additional ESC
  caps:backspace       Make Caps Lock an additional Backspace
  caps:super           Make Caps Lock an additional Super
  caps:hyper           Make Caps Lock an additional Hyper
  caps:shiftlock       Caps Lock toggles Shift so all keys are affected
  caps:none            Caps Lock is disabled
  caps:ctrl_modifier   Make Caps Lock an additional Control but keep the Caps_Lock keysym
The complete list of options is in /usr/share/X11/xkb/rules/xorg.lst. I have not checked to make sure they all work in the vconsoles as well as in X-windows.. Use commas to combine more than one option. Use kbvar= for changing the keyboard variant (kbvar=dvorak). The layout is usually controlled by lang= but you should be able to override this with kbd= so"lang=fr kbd=us" will give you French menus with a US keyboard layout.