Display information about the currently active/focused window

This can be run from a background process to find the actively focused window

Requires the application xdtool (can be installed on Ubuntu with ‘sudo apt install xdotool’).

xdotool getactivewindow | xargs xprop -id