Go away, Caps Lock

On my german keyboard, I prefer to remap my Capslock-key to AltGr instead, allowing me to enter coding-related characters like ‘{‘, ‘}’, ‘[‘ and ‘]’ using two hands instead of one.

In my linux-based OSes and distributions like Arch Linux, I use the following xmodmap-related setup:

# in my ~./Xmodmap:
keycode  66 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift
# in my ~/.xinitrc
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap

Alternatively, in my Windows environments, I remap the key by adding the following remap-capslock-to-altgr.reg-file contents to my registry information:

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,38,e0,3a,00,00,00,00,00
Tagged with: ,
Posted in Development