9

Is there a way to mirror a single window on my screens?

I want to mirror just one window between two screens, not the whole monitor.

At the moment I am using Ubuntu 15.10.

anonymous2
  • 4,298
marcosh
  • 241
  • 2
    FYI, you might want to put a bounty on this. It was asked already, but never got an answer: http://unix.stackexchange.com/questions/150289/mirror-a-single-x-application-on-a-dual-monitor-setup-with-openbox – You'reAGitForNotUsingGit May 25 '16 at 19:56

1 Answers1

5

You can do this with xpra:

xpra start :100 --start-child=PROGRAM --bind-tcp=0.0.0.0:10000
xpra attach tcp:localhost:10000

As a bonus, it also works remotely – you can attach this window to X (or even Windows and MacOS!) on a different machine. xpra is like the console programs screen or tmux for X11.

totaam
  • 387
  • thanks! This looks promising, but I'm not able to make it work. If I use the command you mention I get the following error when I do the attach: xpra initialization error: unknown format for display name: localhost:10000. If I change the attach command to xpra attach tcp:localhost:10000 it goes further on, but when I navigate with my browser to localhost:10000 I get this message disconnect: invalid packet format, not an xpra client?. Should I use another program to see the mirrored window? – marcosh Jun 01 '16 at 12:21
  • @marcosh: the attach syntax was wrong, fixed now - see xpra wiki for more info – totaam Jul 19 '17 at 08:06