Skip to content

Instantly share code, notes, and snippets.

@LinuxIsCool
Created June 5, 2020 03:03
Show Gist options
  • Save LinuxIsCool/a20c0975c083cc4d09eb7a719659ba1f to your computer and use it in GitHub Desktop.
Save LinuxIsCool/a20c0975c083cc4d09eb7a719659ba1f to your computer and use it in GitHub Desktop.
This is the file I use to remap caps to escape and ctrl on Debian based OS (Ubuntu)
# make CapsLock behave like Ctrl:
setxkbmap -option ctrl:nocaps
# make short-pressed Ctrl behave like Escape:
# Default timeout is 500ms
xcape -t 300 -e 'Control_L=Escape'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment