On my Internet research, I found the following command as solution to find the process name of a window:
xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat`
I just do not understand what happens here after the first
Let's assume that
xprop _NET_WM_PID outputs
1000 as process ID. What happens next? Why do we have a
ps? I am a bit confused.