[LinuxFocus-icon]
Home  |  Map  |  Index  |  Search

News | Archives | Links | About LF
convert to palmConvert to GutenPalm
or to PalmDoc

مرحبا بكم في  مجلة لينكس فوكس 

عدد مايو/يونيو

الإفتتاحية


المقالات

التطبيقات

إدارة النظام

الأجهزة

Articles at Linux Gazette
The May issue of lg is not yet available

The LinuxFocus Tip

How to get rid of the caps-lock key?
Do you hate it when you accidently hit the caps-lock key on your keyboard? Under X11 you can easily change the caps-lock key to any other key. You can change it e.g to Esc. Here are 2 ways to do this:

  1. Create a .Xmodmap file in your home directory with the following content:
    !lf-tip: change Caps_Lock to Escape
    clear lock
    keycode 66 = Escape

    Lock out and in again.
  2. An alternative solution is to run the 2 commands:
    xmodmap -e "clear lock"
    xmodmap -e "keycode 66 = Escape"
    To run these commands all the time at startup of X11 add them to your .xinitrc or /usr/X11R6/lib/X11/xinit/xinitrc file
You can check the current key modifiers with the commands:
xmodmap -pm
xmodmap -pke

To see which key code is generated by which key you can start the program xev. Dependent on the type of keyboard caps-lock could be on a different keycode (not 66). You can see the keycode number by using xev.


© 2002 LinuxFocus
Click here to get to the LinuxFocus contact persons list

Directory index for persons translating this issue.