Last Updated: February 25, 2016
·
803
· ghedamat

use Caps Lock as CTRL on Linux

set in your .xinitrc

setxkbmap -option ctrl:nocaps

or use xmodmap and set in your .Xmodmap

remove Lock = Caps_Lock
add Control = Caps_Lock

4 Responses
Add your response

Why would that be useful?

over 1 year ago ·

@dpashkevich give it a try for a week and let me know,
if you are spending a lot of time in the shell, emacs or vim it turns out to be REALLY useful :)

over 1 year ago ·

I spend some time in the shell but probably not as much as you do :) And I don't use vim or emacs.

So does this reduce finger strain or you do the remapping because you want to use ctrl for something else?

over 1 year ago ·

It greatly reduces finger strain, having an easier-to-reach Ctrl is really useful if you get used to it and it also prevents you to accidentally activate Caps-Lock ( that can lead to bad behavior, especially in VIM :D )

over 1 year ago ·