⬅︎ Back to Disable Caps Lock in Linux
Good work! Alternatively, for the vi/vim users, turn your Caps Lock into an Escape key. Now you can switch modes without any stretching off the home row. Add the following to ~/.Xmodmap remove Lock = Caps_Lock keysym Caps_Lock = Escapeand the following to ~/.bashrc if [ "$PS1" ]; then xmodmap ~/.Xmodmap ... fi
Comment
Good work!
Alternatively, for the vi/vim users, turn your Caps Lock into an Escape key. Now you can switch modes without any stretching off the home row.
Add the following to ~/.Xmodmap
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
and the following to ~/.bashrc
if [ "$PS1" ]; then
xmodmap ~/.Xmodmap
...
fi