Diff for /wikisrc/tutorials/how_to_swap_cap_lock_with_escape.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/20 20:55:21 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 #  Esc <-> Caps  #  Esc <-> Caps 
   
 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.  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. 
   
 Well, we need tab, but most of us don't use the caps key, so we can just swap them right away.  Well, we need tab, but most of us don't use the caps key, so we can just swap them right away. 
   
 You only need to create a file with this content:  You only need to create a file with this content: 
          
     ! Swap caps lock and escape      ! Swap caps lock and escape
     remove Lock = Caps_Lock      remove Lock = Caps_Lock
     keysym Escape = Caps_Lock      keysym Escape = Caps_Lock
     keysym Caps_Lock = Escape      keysym Caps_Lock = Escape
     add Lock = Caps_Lock      add Lock = Caps_Lock
          
   
 Or you can just have them both as an Escape key.  Or you can just have them both as an Escape key. 
          
     ! Making caps acting as esc      ! Making caps acting as esc
     remove Lock = Caps_Lock      remove Lock = Caps_Lock
     keysym Caps_Lock = Escape      keysym Caps_Lock = Escape
          
   
 You can save it to a file something like .swapesc and call it from .xinitrc:  You can save it to a file something like .swapesc and call it from .xinitrc: 
          
     xmodmap ~/.swapesc      xmodmap ~/.swapesc

Removed from v.1.1  
changed lines
  Added in v.1.2


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