Description
X11 clients and desktop automation tools can be written in legacy Python 2 through a full X protocol library. Python Xlib helps programs inspect windows, handle events, and communicate with the X server.
It can affect desktop state if caller code sends control requests. Use trusted scripts and test automation before running it in an active session.