Is there a linux command to determine the window IDs associated with a given process ID?

前端 未结 6 1988
借酒劲吻你
借酒劲吻你 2020-12-22 23:41

Given a process iD of XX, I\'d like to have a list of any window id\'s where _NET_WM_PID = XX. Even better would be the oldest still active window id if possible.

I

6条回答
  •  梦毁少年i
    2020-12-23 00:20

    You can use:

    xdotool getwindowfocus getwindowname
    

    (As is: you don't need to replace those nice-sounding names with anything.)

提交回复
热议问题