Unix/Linux — Swap Ctrl and Caps Lock in X11

by

In order to swap the Ctrl and Caps Lock keys in X11, you can add the following line in Section “InputDevice” of file /etc/X11/xorg.conf:

Option “XkbOptions” “ctrl:swapcaps”

If you woud like to keep the Ctrl where it is and make Caps Lock act as a Ctrl also, you can add:

Option “XkbOptions” “ctrl:nocaps”

Advertisements

One Response to “Unix/Linux — Swap Ctrl and Caps Lock in X11”

  1. nvm (@nvm_my_comment) Says:

    Nice! better than the xmodmap way!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: