Annotation of wikisrc/tutorials/how_to_swap_cap_lock_with_escape.mdwn, revision 1.2

1.2     ! schmonz     1: #  Esc <-> Caps 
        !             2: 
        !             3: The original Unix terminals (or at least the one vi(1) written on) had the esc key somewhere around the tab on PC keyboards. This makes sense if you think about vi's commands. 
        !             4: 
        !             5: Well, we need tab, but most of us don't use the caps key, so we can just swap them right away. 
        !             6: 
        !             7: You only need to create a file with this content: 
        !             8:     
        !             9:     ! Swap caps lock and escape
        !            10:     remove Lock = Caps_Lock
        !            11:     keysym Escape = Caps_Lock
        !            12:     keysym Caps_Lock = Escape
        !            13:     add Lock = Caps_Lock
        !            14:     
        !            15: 
        !            16: Or you can just have them both as an Escape key. 
        !            17:     
        !            18:     ! Making caps acting as esc
        !            19:     remove Lock = Caps_Lock
        !            20:     keysym Caps_Lock = Escape
        !            21:     
        !            22: 
        !            23: You can save it to a file something like .swapesc and call it from .xinitrc: 
        !            24:     
        !            25:     xmodmap ~/.swapesc

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb