Tag Archives: window ID

Find window ID of a process ID in BASH script

Question
In a BASH script, I launched an application and use “$!” variable to grab it’s process ID. I would like to perform some action on the application’s main window (e.g. move or resize it). However, this requires knowing the application’s window ID. How do I find the application’s window ID, using only [...]