Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Let's say you have two monitors hooked up to the same machine, running gnome (let's call them 'A' and 'B'). Each has its own, independent x-screen.

Our goal is to type a command into a terminal on Monitor A and have that command open an application on Monitor B.

Is there an easy X-command that lets that happen?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Assuming the first display is :0 and the second is :1 then typing

DISPLAY=:1 <command>  

should be enough to get the command to run on the second window.

This will make all subsequent apps run from the terminal session open in the second window:

export DISPLAY=:1 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.