Let's say I have a program open on another virtual desktop. Is there a way I can bring that program to the current desktop through a script?
The following command is the closest I can get:
wmctrl -a program
This will switch to the desktop where the program is open and make it the foremost window. However, instead of going to the desktop where the program is, I want to bring the program to the current desktop. There is also this command:
wmctrl -R program
The documentation says that this will do what I want, but it just does the same thing as the former command.