Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program nam
Extracted the gist of xprop into https://github.com/mondalaci/current-window-linux
Works but sometimes segfaults - needs to be fixed and cleaned up.