On Linux these days it is very easy to serve any window through a browser.
You’ll need to install websockify and novnc for this technique. This post continues from the steps described here:
Now we will launch the two relevant programs together. A quick program I remembered that can do this is a node package called
I use i3 as my window manager, and would like to create a program called
wincat that I can launch with dmenu to automate the technique.
Now I can run
wincat, click the window I want to serve, and access the server at https://hostname:6080 – when I’m done I just send interrupt signal to the terminal to kill the process tree.