Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Run setxkbmap in your .xinitrc if applicable:

  setxkbmap -option caps:escape
Linux desktop environments’ keyboard configuration tools should also let you do this.


I am using Windows. Is there a lightweight solution to map Caps Lock to Escape on Windows?


Copy and paste the below into a .reg file and run it. I used Sharp Keys ( https://sharpkeys.codeplex.com/ ) to create it, but since every major Windows 10 update resets your key mappings I just extracted it from the registry and double click the reg file after each update.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,01,00,3a,00,00,00,00,00




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: