5 ms·
I wonder if something like this could be done on Linux with xorg hackery (probably involving xvfb?). Definitely seems handy.
by generalizations 2y ago
I wonder if something like this could be done on Linux with xorg hackery (probably involving xvfb?). Definitely seems handy.
- eqvinox 2y agoYou can just start Xephyr, it gives you an X server in a window. Needs a few lines of setup around it to get a window manager or desktop session on that window.
- badmintonbaseba 2y agoIs it possible for that setup to show up as a virtual display on your main WM/DE, so you just extend to it, or does it need to run its own, separate instance? Can you drag a window from your main DE to the virtual display?
- eqvinox 2y agoWith Xephyr, it's a separate instance per se. I've never tried attaching it to an existing session; this is total half-knowledge but it might have been possible with the old Xinerama protocol (which has been replaced with Xrandr). With the move to Wayland, it's all a bit of a moot point either way... (You can absolutely use Xephyr on a Wayland session of course, since the latter is compatible with X11 clients. But the virtual display Xephyr provides is X11.)
- yjftsjthsd-h 2y agoMany Wayland compositors can just be launched nested with no extra steps, which is approximately the same as Xephyr.
- eqvinox 2y agoI assume that approach has the same limitations as Xephyr too? I.e. independent session, need to decide upfront which to use when launching things?
- yjftsjthsd-h 2y agoAFAIK, yeah. It really is almost exactly like Xephyr, just that you don't launch a window manager into the new X server because the compositor is the display server.
- deathanatos 2y agoNested X sessions aren't quite the same as TFA's tool; you wouldn't be able, I don't think, to drag a window from one to the other. You'd need to restart a copy of anything you want to present in the nested X session. It could "work" in the same vein, but the UX isn't as nice as what TFA's tool is, I think.