Requires the application xdtool (can be installed on Ubuntu with ‘sudo apt install xdotool’).
xdotool getactivewindow | xargs xprop -id
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