xserver
The appwindows library provides a unified way to find, inspect, and control application windows across Windows, macOS, and Linux.
Linux python client for Xserver to access windows information and automate keypresses
CLI for XServer
Get information from the current display on Linux-X11: pip3 install xdisplayinfo