Something like xkill, but just output the PID or resource ID, don't kill
I want to write a script to do some things to processes which are producing specific windows. I want the user to be able to select a window. So I'm looking for a program which is basically just like xkill, but rather than closing the X connection, I simply want it to output the PID of the parent (or the X resource ID, from which I can hopefully find the parent PID).
I've even gone so far as to find the xkill source, but I don't know C, so that approach stopped there.
|