0

I am using Wayland Gnome on a desktop PC. I have disabled Caps Lock by running gsettings set org.gnome.desktop.input-sources xkb-options "['caps:ctrl_modifier']" to use Caps Lock for some other shortcut. Not disabling Caps Lock made pressing Caps Lock do the short action and toggling the input state at the same time.

But I still sometimes need Caps Lock (e.g., typing C constant literals). I think I could create a new custom shortcut in Gnome's keyboard settings, but what "command" can I use to toggle the Caps Lock? Note that what I want to do is toggling the state of input (e.g., whether TEST or test), NOT toggling between Caps Lock is enabled/disabled.

setleds -caps in an old existing question did not work.

Damn Vegetables
  • 3,622
  • 16
  • 46
  • 78

0 Answers0