Hi all. I have a very specific problem.
I have my CapsLock remapped to change the keyboard layout (to switch the input language), via Gnome standard System->Preferences->Keyboard ui shell.
On that config ui - I leave field "Caps Lock key behavior" as a "default" and change the "Keys to change layout" to CapsLock.
If I try to select in "Caps Lock key behavior" something other, that "default" - the key stops to switch layout as well.
The problem is that sometimes (I think, after 8-12 hours of working) Caps Lock not only switches the layout, but also the Caps Lock mode, so all the letters get capitalized. And the only way to turn that mode off - is to remap Caps Lock key back to it's default value, change the mode, and then remap the key again to function properly. It's very inconvenient.
Don't suggest me to turn the Caps lock key off - it makes switching layout also impossible.
Maybe there is some command, which I can enter on the terminal - to change Caps Lock mode?
xmodmap -e "remove lock = Caps_Lock" disables the key, but not the mode =(