Linux: Make CapsLock Do Home Key

By Xah Lee. Date: .

How to make Caps Lock do Home Key on Linux?

Create a file at ~/.Xmodmap with the following content:

! -*- coding: utf-8 -*-
! 2017-02-08
! Linux: Make CapsLock Do Home Key

! keycode  66 = Caps_Lock NoSymbol Caps_Lock
! keycode 110 = Home NoSymbol Home

clear Lock
keycode 66 = Home NoSymbol Home

Now, run this line in terminal:

xmodmap ~/.Xmodmap

When you restart, that file will run automatically.

back to Linux: xmodmap Tutorial

Linux Keybinding

  1. Keyboard Software Guide
  2. Swap Control Alt Keys
  3. Set F2 F3 F4 to Cut Copy Paste
  4. Swap CapsLock Escape Keys
  5. Make CapsLock Do Home Key
  6. Setup Shift Lock Key
  7. Add Keyboard Shortcut to Switch App
  8. Set Key Repeat Rate
  9. Set System Keyboard Layout
  10. How to Switch to Dvorak Keyboard Layout
  11. Change Volume by Command
  12. xmodmap
  13. xbindkeys
  14. xvkbd
  15. Find Keyboard Key Scancode
  16. X11 Keyboard Key Names

If you have a question, put $5 at patreon and message me.