When I log in to Ubuntu I have 6 workspaces set up in Unity/compiz. On four of those workspaces I place a chrome window, in another RStudio, and another just has a few Terminals. I also have pidgin on the RHS of each workspace (sticky).

When I log in the next time I'd like to be able to run something which:

a - places the programs I always use (Terminal, chrome, Rstudio) on the correct workspace; b - fixes their dimensions (when I switch laptop between external screen and internal screen Unity changes the workspace - see Switching displays while keeping windows in workspaces);

Is there a way to record window size and workspace so I can write a shell script to restore my preferred setup ?

The solution should (if possible) work with chrome in particular.

There is a partial answer to this, pointed out by Jacob - Is there a script (or software) to open an application window on a specific viewport and position? - but that is targeted at opening up the same set of windows each time, rather than recording a particular setup and then restoring that. It therefore solves some of my problems, but not the full restoration of chrome windows (with tabs) which were open at the time I saved the session.

I think that is down to me imperfectly explaining the issue - I think the solution found by Jacob sorts out the problem I identified, so will accept and come back to this if I need the other element sorted.




You must log in to answer this question.

Browse other questions tagged .