How can I remap the Caps Lock key to be Shift Lock?
Solution 1
In Gnome, you can change Caps Lock beavior in Gnome-Tweak-tool, then Typing:
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:
Related videos on Youtube
Tim
My name is Tim. I've graduated from the University of Nottingham with a First Class Computer Science BSc with Hons. In my spare time I do computer programming, often C or JavaScript, but also shell scripts, and answering questions on Stack Exchange. I used to spend most of my time on Ask Ubuntu; now I mostly browse the HNQ or Meta Stack Exchange. If you want to contact me it's [email protected] Do you need a reliable VPS? Try Digital Ocean. Sign up with this link for $10 free. One of my favourite sites is Kiva.org, a micro-funding organisation that allows people to lend money via the Internet to low-income entrepreneurs and students in over 80 countries. Kiva's mission is “to connect people through lending to alleviate poverty.” With just $25 you can make a difference - and 99% of loans are paid back in full - so you can lend again and again!
Updated on September 18, 2022Comments
-
Tim almost 2 years
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 about 9 yearsCan I get this interface in GNOME?
-
gertvdijk about 9 years@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.
-
Tim about 9 yearsyes, thanks for the answer :) I'll try and get it working on gnome.
-
bitops over 2 yearsOn Pop_OS! I used
sudo apt install gnome-tweaks
to install Tweaks, then Super key and type "Tweaks" to find it. Works great!