Skip to content

Instantly share code, notes, and snippets.

@mike239x
Last active September 3, 2019 18:34
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 mike239x/118ec0ad4a5a2eb79d2520a8de432cb6 to your computer and use it in GitHub Desktop.
Save mike239x/118ec0ad4a5a2eb79d2520a8de432cb6 to your computer and use it in GitHub Desktop.
xkb config file for mapping caps to ctrl
# This is a config file that maps caps-lock key to yet another ctrl key.
# It works pretty much on any Linux system with XKb, the X Keyboard extention,
# so anything that has Xorg would probably work.
# The file goes to /etc/X11/xorg.conf.d/ folder.
Section "InputClass"
Identifier "keyboard defaults"
MatchIsKeyboard "on"
Option "XKbOptions" "caps:ctrl_modifier"
EndSection
# This is equivalent to executing `$ setxkbmap -option 'caps:ctrl_modifier'` on start every time.
# If you want to do something else I highly recommend to read `$ man xkeyboard-config`,
# it contains many more options for what you can do with caps and other keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment