Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
103
rated 0 times [  103] [ 0]  / answers: 1 / hits: 40576  / 2 Years ago, mon, april 25, 2022, 12:06:47

I'm using Xubuntu 12.04. How do I either swap or remap the Control (or any key) and Caps Lock keys?


More From » xubuntu

 Answers
0

Another way:



sudo vi /etc/default/keyboard


then find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make Caps Lock an additional Control key or ctrl:swapcaps to swap Caps Lock and Control.



For example, mine looks like



XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"


then run



sudo dpkg-reconfigure keyboard-configuration


The reason this way is better is that it will take effect on the virtual consoles (e.g. Ctrl+Alt+F1) as well as in the graphical desktop.


[#37663] Tuesday, April 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ideobedi

Total Points: 121
Total Questions: 108
Total Answers: 107

Location: United States Minor Outlying Island
Member since Sat, May 28, 2022
2 Years ago
;