I've got a persistent-storage live USB (with a separate casper-rw partition), with Xubuntu 14.04 on it. I've got the same OS on my desktop, and I'd like to be able to synchronize my settings between the two, so that when I change things like panel layouts and keyboard shortcuts on one device, it gets updated on the other. That way, when I'm working on my live USB on other computers, I'll have the same familiar layout and shortcuts.
How can I do this? My hack at it would be to make a script that runs when I log out, and copies my settings files to the live USB if it's connected. I'd also like to do the same thing on the USB, so when I'm using it on my main computer, it will sync any changes I make there as well. (One would have to be lower priority to avoid conflicts; I'd make the script on the USB prompt me before syncing.)
Will this work? I'm very new to Xubuntu, and I just started dual-booting with Windows a couple months ago, so I'm not sure what files need to be copied, and which, if any, I should avoid moving.