Disconnecting external monitor
Hello,
I use multi-monitor setup with eight workspaces, four on each:
workspace 1 output HDMI1
workspace 2 output HDMI1
workspace 3 output HDMI1
workspace 4 output HDMI1
workspace 5 output LVDS1
workspace 6 output LVDS1
workspace 7 output LVDS1
workspace 8 output LVDS1
When I start my laptop WITHOUT any external monitor, i3 assumes HDMI1 -> LVDS1 so everything work fine (I have all workspaces on my laptop screen). The issue is when I disconnect my laptop from dock - all running applications from 1-4 workpaces are unavaiable to me. I can only "feel" they are still there (but I dont see them). Processes are still running.
While this is not bad behavior (good for meetings when you need quickly do something and than return to your desk), I would like to tell i3 to move all of them to LVDS1 when I plan for example to finish my work only on laptop.
Is there any way to do this? Some kind of script that would move all workspaces to LVDS1. I would call this onescreen.sh. And also a second script (twoscreens.sh) that would put my original setting back.
So far I am pretty impressed with i3, the final test will be to test Elluminate desktop sharing software (I have to use it). It's a Java app with some weird features, so far so good (recorded meetings work), need to test sharing next week.
Hmmm this could do it: i3-msg workspace N output XYZ. Will need to try with an external monitor connected. Currently (without it) this works (i3-msg workspace 1 output VGA1), workspace disappears but after I switch to it it goes back to LVDS1. Strange, it did not work like this when I undocked it.