This is one of the most useful linux commands

setxkbmap -option "ctrl:nocaps"

It sets caps lock to ctrl, which is its most useful and reasonable binding. Useful especially in latest releases of most distributions, since newest Gnome control centre libraries remove the GUI to set the above (seriously, Gnome people, what’s with the constant removal of useful stuff, huh?).

update: Anya tweets a protip:

I guess whether .xsession still works depends on what kind of desktop env you’re using, afaik it doesn’t work on GNOME/Unity. Also, Unity still has a UI where you can put “startup applications”, and these can be arbitrary commands.

Published by Piotr Kaźmierczak

I like jazz and cycling.