Swap caps lock and Ctrl in Ubuntu 13.10
Solution 1
The relevant option is no longer available in the settings menu in Ubuntu 13.10; this has been reported as a bug (https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1218322). However, it is still possible to swap these keys using the Gnome tweak tool.
First, install gnome-tweak-tool using sudo apt-get install gnome-tweak-tool
from a console.
Then, run it using the command gnome-tweak-tool
, or by typing "Tweak Tool" into the dash at the top-left.
From this tool, choose the "Typing" tab on the left. Then, from the dropdown next to "Ctrl key position" on the right, choose "Swap Ctrl and Caps Lock". This should swap those two keys.
Solution 2
setxkbmap -option ctrl:swapcaps
Will work on all linux distributions and versions. You will need to add it to your startup file to get it to run automatically when you log in.
Solution 3
go to System Settings/Keyboard Layout/(language)/options
Solution 4
setxkbmap -option ctrl:swapcaps
will only swap Control and CapsLock. If you want both keys to simulate Ctrl then gnome-tweak-tool
-> "Typing" -> "Caps Lock as Ctrl". Now both keys work as Ctrl.
Related videos on Youtube
VikNop
Updated on September 18, 2022Comments
-
VikNop almost 2 years
I really want to use the libpostal library as part of my Java application via the jpostal binding. While I can work around the fact that jpostal uses Gradle instead of Maven, I'm not sure where to proceed after I've cross compiled a libpostal DLL using a Linux machine.
According the answer to this question, the process of installing a DLL on Windows is very convoluted.
If anyone has good idea as to where I can put the DLL so that my Java application using jpostal can find it, please tell me.
P.S: My Java application will run on a CentOS machine in production but for development, testing, and demoing I'm using my laptop and desktop which run Windows. Of course if I can't get libpostal to work on Windows, then I can always go the virtual machine route.
-
user2239690 over 10 yearsthere's no such option. I can reach as far as System Settings/Keyboard/Layout Settings, however there's no "options" to be found.
-
JoKeR over 10 yearscan you provide a screenshot where are you looking for it? Because there's an option to swap Caps Lock with Ctrl I just checked it myself.
-
Jez W over 10 years@JohnyD. Which version of Ubuntu are you using? I'm looking in the same place (on 13.10) and the option doesn't seem to be there. I remember seeing something similar on an older version, for sure, but I think it may have been moved at some point.
-
Jez W over 10 yearsYeah, it's a reported bug in 13.10 that this menu is missing. See bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/….
-
JoKeR over 10 years![screenshot][1] [1]:s1.bild.me/bilder/260513/…
-
JoKeR over 10 yearsfollow this thread then if it's a bug askubuntu.com/questions/356357/…
-
user2239690 over 10 yearsIt was driving me nuts. Can't thank you enough.
-
John Meacham over 3 yearssetxkbmap -option ctrl:nocaps will cause both keys to be control and is independent of gnome.
-
Culip about 3 yearsConfirmed it worked for Ubuntu 18.04 and GNOME 3.28.