Skip to content

Instantly share code, notes, and snippets.

@ianchen06
Created September 1, 2015 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianchen06/32990934e599cda1e3de to your computer and use it in GitHub Desktop.
Save ianchen06/32990934e599cda1e3de to your computer and use it in GitHub Desktop.
Remap capslock key to ctrl
sudo apt-get install xcape
Then configure it in the following way:
# make CapsLock behave like Ctrl:
setxkbmap -option ctrl:nocaps
# make short-pressed Ctrl behave like Escape:
xcape -e 'Control_L=Escape'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment