1 | initial version |
Yes, you can use the xwininfo command to find the window ID associated with a particular process ID.
ps -ef | grep <process_name>
xwininfo -root -tree | grep "<pid>"
Replace with the process ID you obtained in step 1.
The xwininfo command will display information about all visible windows on the screen. The grep filter will narrow the output to display only the window IDs associated with the specified process ID.