Howto, Linux

Check your Arch installation date & replace Caps Lock with Escape

If you use Vim you should know by now how important it is to use modifier key. In old days, the escape key was in the place of TAB so it wasn’t any problem. But modern day keyboards have CAPS LOCK in the place of old ESC. Let’s change it.

  • Open ~/.xinitrc and add this solitary line setxkbmap -option caps:escape &
  • Open ~/.xmodmap and add these:
    remove Lock = Caps_Lock
    keysym Caps_Lock = Escape
    
  • Do xmodmap ~/.xmodmap to autostart xmodmap on system startup.
  • Restart!

While we’re at it, let’s check how long have you had your Arch Linux installed , head -n 1 /var/log/pacman.log will output the exact date your pacman (hence Arch) was installed.

Tagged , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *