Skip to content

Instantly share code, notes, and snippets.

@caironoleto
Last active June 1, 2018 07:11
Show Gist options
  • Save caironoleto/23d18db999d30c356c6b499433793a2d to your computer and use it in GitHub Desktop.
Save caironoleto/23d18db999d30c356c6b499433793a2d to your computer and use it in GitHub Desktop.
Replace caps lock to ctrl in Linux

sudo vim /etc/default/keyboard

And edit XKBOPTIONS="ctrl:nocaps"

Then, reconfigure:

sudo dpkg-reconfigure keyboard-configuration

@caironoleto
Copy link
Author

Use nocaps to keep both keys working as ctrl :)

swapcaps switch the keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment