11

I would like Caps Lock to behave as if it were Shift Lock - so when you have Shift Lock on and press 1, it gives !. I am using GNOME, but if I can use a package for another DE on GNOME, I'm happy to hear!

Is this possible?

Tim
  • 32,861
  • 27
  • 118
  • 178

2 Answers2

6

In Gnome, you can change Caps Lock beavior in Gnome-Tweak-tool, then Typing:

enter image description here

Unfortunately, due to a bug/misfeature, the descriptions are hardly readable (they are truncated too short). You should match that with the full descriptions in /usr/share/X11/xkb/rules/evdev.lst --- this seems the one you want:

 caps:shiftlock       Caps Lock toggles ShiftLock (affects all keys)

Just select a couple of them until you get what you want.

Rmano
  • 31,947
  • On Pop_OS! I used sudo apt install gnome-tweaks to install Tweaks, then Super key and type "Tweaks" to find it. Works great! – bitops Jan 02 '22 at 09:47
3

Yes, in KDE at least, this is easily configurable in the Keyboard system settings. Various options for mapping Caps Lock to Shift with locking are available:

enter image description here

gertvdijk
  • 67,947
  • Can I get this interface in GNOME? – Tim May 27 '15 at 14:56
  • 1
    @Tim I'm not familiar with GNOME. You didn't specify in your question for which desktop environment you would like an answer. Having a lot of useful options for the keyboard is one of the reasons for me to use KDE only. – gertvdijk May 27 '15 at 15:01
  • yes, thanks for the answer :) I'll try and get it working on gnome. – Tim May 27 '15 at 15:10