This has been asked to death, and yet none of the solutions I've found seem to work.
I want to run a command, say setxkbmap -layout us -option ctrl:nocaps
, at login. It should only run for me, and not anybody who logs in.
~/.profile doesn't work. ~/.xinitrc doesn't work. ~/.xsession doesn't work. ~/.config/autostart doesn't work.
Edit: Ideally, the solution would also be backup-friendly. Config files are easy to copy, and that's one of the great things about Linux systems.