Workplace viewport scripting
There are tools around the web for saving desktops. Still best solution I found out to be running a set of virtual machines on your computer, having one setup in one vm.

That takes some space, but you can save the state of vm upon vm shut down and come back to exactly same state when you come back. Maybe sessions have died but the windows certainly are as you left them.

Solution is stated on http://www.makeuseof.com/tag/save-restore-windows-session/ and it is for windows but I suppose the same will apply for Linux vm too.