To get rid of the Caps Lock key, we just need to use xmodmap.
Open a terminal and enter:
$ xmodmap -e "remove lock = Caps_Lock"
Now caps key is disabled.
To enable caps key, enter:
$ xmodmap -e "add lock = Caps_Lock"
Enter the following code to add it permanently to your shell startup file ~/.bash_profile or ~/.profile file:
$ echo 'xmodmap -e "remove lock = Caps_Lock"' >> ~/.bash_profile
If the above doesn't work, use the setxkbmap command instead.
To turn off caps lock key, enter:
$ setxkbmap -option ctrl:nocaps
To reset caps lock. enter:
$ setxkbmap -option
No comments:
Post a Comment