I'm looking for a way to move a terminal window running the following command. The terminal-window should be sent to workspace 2 after 30 seconds.
The following code didn't work:
sleep 30 && xdotool getactivewindow set_desktop_for_window 2
This command will move ANY window that currently has the focus. It is the terminal window running the command which I want to move, though.
Please note that I'm using GNOME-Terminal.
Thank you.