Can anyone explain how to swap Caps Lock and Ctrl keys on Ubuntu desktop under Unity. I use it to avoid emacs pinky.
4 Answers
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.
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.
- 251
- 2
- 3
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.
- 203
