The settings that allowed to change caps-lock to control seem to have gone in the latest Ubuntu. How can this behavior can be changed now?
Asked
Active
Viewed 1.4k times
2 Answers
33
You probably want to install the gnome-tweak-tool package
sudo apt install gnome-tweak-tool
and start Tweaks.
Then: Keyboard & Mouse -> Additional Layout Options -> Caps Lock behavior
Gunnar Hjalmarsson
- 32,938
- 3
- 63
- 94
-
2Gnome tweak is mind blowing; this is the cleanest way to knock out caps lock; thanks! – chepyle Feb 08 '18 at 01:44
-
This doesn't seem to work in Bionic - no "Keyboard & Mouse", just "Keyboard" in the settings tool, and the "Keyboard" setting only have shortcuts, no "additional layout options". And I'm astonished that what I've considered the most basic remapping of all for decades (matching classic Unix keyboard layouts, and putting the very important ctrl modifer in an easy-to-use spot while getting rid of a stupid caps-lock key) requires installing software from universe! – nealmcb May 01 '18 at 20:59
-
3@nealmcb: Yes, it works in 18.04 too. You need to start the _Tweaks_ application - I just clarified my answer with that. – Gunnar Hjalmarsson May 01 '18 at 21:23
-
This works for me from the command line or in a shell script using only fully supported core Ubuntu software: `setxkbmap -option ctrl:nocaps` – nealmcb May 12 '18 at 15:21
-
1@nealmcb I too was surprised not to find this config in the Tweaks tool in 18.04, but it's now buried under Keyboard & Mouse, then 'Additional Layout Options' which pops open a small window with the ability to set the Caps key accordingly. – waffl May 12 '18 at 16:29
4
On Ubuntu 18.04 there's no way to save or exit from the Additional Layout Options, I had to kill the process. gnome-tweak-tool is worthless, but setxkbmap -option ctrl:nocaps worked perfect.
Michael Bushey
- 51
- 1
-
5An option is saved once selected. Tweaks works just fine on 18.04 too. – Gunnar Hjalmarsson Jun 15 '18 at 17:37