13.10 - Permanently set keyboard layout options with setxkbmap in gnome/unity - Ask Ubuntu: "to prevent gnome resetting keyboard setting in X i use this command:
gsettings set org.gnome.settings-daemon.plugins.keyboard active false"
'via Blog this'