if you are using any of the Gnome or its variants under distros like Ubuntu, Pop-OS and other and prefer to use the Caps Lock
key to change the keyboard layout to another language, there is a way.
First install the dconf-editor
:
sudo apt install dconf-editor```
and then run it. Then go to the below path:
and update the custom value
to:
['grp:caps_toggle']
Done.