I don’t like Caps Lock, it’s the the most unnecessary key on the keyboard in my opinion. I hardly ever write more than couple of words in capitals, but often accidentally hit the key; suddenly finding myself TYPING IN ALL CAPS LIKE A SCREAMING MONKEY. Here’s an easy way to disable your Ubuntu’s Caps Lock key.
Install dconf
I already had this installed
$ sudo apt install dconf-tools
Disable caps lock (reenable by pressing both shift keys at once)
$ setxkbmap -option "caps:none" $ setxkbmap -option "shift:both_capslock"
Add this to your .bashrc file
vim .bashrc