Hi everyone! I have a tricky question here.
I'm trying to write a script that opens an xterm, runs cmus
in that terminal, and (but this is a secondary question) then closes the terminal when I close cmus.
The main problem is to switch to the second just-made terminal and run there a command.
How would you do that?