How can I operate on the active X display using a command in the console?

Posted by G1i1ch on Ask Ubuntu See other posts from Ask Ubuntu or by G1i1ch
Published on 2012-06-09T21:36:06Z Indexed on 2012/06/09 22:47 UTC
Read the original article Hit count: 172

Filed under:
|
|
|

I have problems where compiz freezes and I have to switch to another console(ctrl+alt+F1) to restart. But it would be easier if I could just do "$ compiz --replace" in the other console and not have to lose work or anything.

But when I do this it says it can't open the display, makes sense because the display is open in console 7. Is there any way I can easily redirect a command to another console for it to be run there?

Like for instance, be in console 1 and execute "$ compiz --replace" on console 7?

© Ask Ubuntu or respective owner

Related posts about unity

Related posts about compiz