Ubuntu / How to get PID of a window

This command will allow you to point out the interesting window and print out its process ID:

xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat`

No comments:

Post a Comment