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?


2 Answers 2


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.

  • 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 2, 2022 at 9:47

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

  • Can I get this interface in GNOME?
    – Tim
    May 27, 2015 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, 2015 at 15:01
  • yes, thanks for the answer :) I'll try and get it working on gnome.
    – Tim
    May 27, 2015 at 15:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .