How can I remap the Caps Lock key to be Shift Lock?

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?

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

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.

Solution 2

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

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply