recentpopularlog in

kme : swapcapslockandctrl   3

How do you remap a key to the Caps Lock key in Xubuntu? - Ask Ubuntu
Another way:
<code class="language-bash">sudo vi /etc/default/keyboard</code>
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
code class="language-bash">XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"</code>
hen run
<code class="language-bash">sudo dpkg-reconfigure keyboard-configuration<code>
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.
linux  ubuntu  xubuntu  swapcapslockandctrl  capslock  keymap  console  solution 
9 weeks ago by kme

Copy this bookmark:





to read