Swapping ctrl and capslock in Ubuntu

I always forget how to do this permanently, so now I’m blogging it so I’ll remember. There’s multiple ways to do it. You can change it in some Gnome setting or run “setxkbmap -option ctrl:swapcaps” in your .bashrc.

I like to edit my /etc/default/keyboard conf file

Set XKBOPTIONS="ctrl:swapcaps"

And run

sudo dpkg-reconfigure keyboard-configuration

Source: http://askubuntu.com/questions/149971/how-do-you-remap-a-key-to-the-caps-lock-key-in-xubuntu


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s