Is there a way, in bash command line, to give focus to a specific window of a running process. Assume I know the process' name, number, and anything else I need.
For instance, if I have a single instance of Firefox running, but it's minimized (or there's some other window on top of it). I need a bash command that brings up and gives focus to the Firefox window, by making it the active window.
EDIT: Using Gnome window manager (Ubuntu OS, specifically).
EDIT2: Turns out I was being to picky on my Google searches. Less strict search terms eventually led me to an answer, I'm posting it below. If anyone knows of other options, feel free to post them as well.
Thanks