Last active
September 3, 2019 18:34
-
-
Save mike239x/118ec0ad4a5a2eb79d2520a8de432cb6 to your computer and use it in GitHub Desktop.
xkb config file for mapping caps to ctrl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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