Run command at login - Ubuntu 15.04

Most certainly, ~/.config/autostart does work if the command works "normally", but you have to be aware of two possible bottlenecks:

  1. The launcher in ~/.config/autostart is a .desktop file. To run a complicated command from a .desktop file, use the command:

    /bin/bash -c "setxkbmap -layout us -option ctrl:nocaps"
    
  2. Some commands break if they run while the desktop is not fully loaded yet. In that case you'd have to add a little break, e.g.:

    /bin/bash -c "sleep 15&&setxkbmap -layout us -option ctrl:nocaps"