"Hi, just found this subreddit today! I had run into this exact same thing, so I put together something called i3session. It is doing something similar to what you have here, but is able to save/restore current workspaces from a session file. It might be of interest: https://github.com/joepest..."
- Joe Pestro