How do I disable the capslock key?

Discussion in 'Linux' started by hiker_jon, Oct 9, 2008.

  1. hiker_jon

    hiker_jon

    Joined:
    Aug 24, 2008
    Messages:
    28
    Likes Received:
    0
    Hi,
    My fingers are just too big. I keep on unwittingly turning on capslock while typing. Does anyone know how I can disable this key on Linux? It is poor design to have a key like this (used very little during normal typing) be so large and easily hit. I think it is a holdover from ancient days when Neanderthals typed in caves.

    Jon
     
    hiker_jon, Oct 9, 2008
    #1
  2. hiker_jon

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    Try putting:

    Code:
    remove Lock      = Caps_Lock
    in /etc/X11/Xmodmap

    and restart.
     
    cpchan, Oct 9, 2008
    #2
  3. hiker_jon

    hiker_jon

    Joined:
    Aug 24, 2008
    Messages:
    28
    Likes Received:
    0

    Hi,

    Thanks but it doesn't work on my machine.

    Jon
     
    hiker_jon, Oct 9, 2008
    #3
  4. hiker_jon

    daldred

    Joined:
    Aug 25, 2008
    Messages:
    887
    Likes Received:
    0
    I have this in a file called .xmodmap (note the dot at the start of that filename) in my home directory:

    Code:
    clear lock
    keycode 66 = NoSymbol Caps_Lock
    add lock = Caps_Lock
    
    This causes CapsLock on iis own to do nothing, buut Shift-Capslock works instead.
     
    daldred, Oct 9, 2008
    #4
  5. hiker_jon

    hiker_jon

    Joined:
    Aug 24, 2008
    Messages:
    28
    Likes Received:
    0
    Thanks, this works. But the name of the file in /home/user must be .Xmodmap

    Jon
     
    hiker_jon, Oct 9, 2008
    #5
  6. hiker_jon

    cpchan

    Joined:
    Sep 22, 2008
    Messages:
    201
    Likes Received:
    0
    I just wrote it off the top of my head. OK, just tested it out:

    Code:
    remove Lock      = Caps_Lock
    works, but Linpus is setup not to load the global Xmodmap file in /etc/X11, where as all standard Unix/Linux systems does. On a more standard Unix/Linux system, /etc/X11/Xmodmap is used to modify the keymap system wide, where as ~/.Xmodmap is for per user modifications.

    Another strike against Linpus.
     
    cpchan, Oct 10, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.